Results 1 to 11 of 11

Thread: Nameservers and default page

  1. #1
    Join Date
    Jul 2006
    Location
    Bodø, Norway
    Posts
    241

    Default Nameservers and default page

    How can I set up the server so that when I register a domain through with WHMCS through enom (or any other registrar) and it points to my nameservers, I will get a default page saying the domain is currently hosted by ....?

    thanks.
    Thomas

  2. #2
    Join Date
    May 2006
    Location
    Harrodsburg, KY
    Posts
    154

    Default

    Put whatever page you'd like in the cPanel/WHM Skeleton directory...any new signups will have whatever is in the skeleton directory copied to their public_html and public_ftp directories. The option to set the skeleton directory is in WHM.

    An example of mine would be http://www.hopecommittee.org

    In my skeleton directory, I have an index.php that simply consists of:

    Code:
    <? include('http://www.premieronline.us/header.php'); ?>
    <? include('http://www.premieronline.us/recently.php'); ?>
    <? include('http://www.premieronline.us/footer.php'); ?>
    So anytime I want to make a change, I just change the "recently.php" on my site and it changes it for all sites that haven't uploaded anything yet...
    Premier Online Internet Hosting
    Affordable Internet Hosting
    http://www.premieronline.us

  3. #3
    Join Date
    Jul 2006
    Location
    Bodø, Norway
    Posts
    241

    Default

    Thanks for the reply, but that's not what I meant

    A customer buys only a domain name from me. I then have my default nameservers set so that the domain points to ns1.myns.com, ns2.myns.com. Now, when I enter the domain I have registered, nothing happens. I would like all new domains that is registered (when it is a domain only) to have a default page that shows my own content. I'm looking for the best way to do this I hope I explained it a bit better this time )
    Thomas

  4. #4
    Join Date
    May 2006
    Location
    Harrodsburg, KY
    Posts
    154

    Default

    I understand..I thoguht they were getting hosting packages too.

    Off thet op of my head, I'd say that you would have to park that domain in your cPanel and point it to a parked page on your site..I'm sure there's a cleaner solution to this, but I'd have to play around..I've never had anyone just get a domain with no hosting...
    Premier Online Internet Hosting
    Affordable Internet Hosting
    http://www.premieronline.us

  5. #5
    Join Date
    May 2006
    Posts
    2,530

    Default

    I think Chris is still on the right track. Probably the easiest way for you to do it is to customize your servers default whm page, you know the one that says: "the site does not exist here". That way you dont have to add any data about the "parked" domain anywhere within whm.

    I think that should work, i havent tried it, the idea just popped into my head after reading this.
    DISCLAIMER: I am in no way associated with WHMCS. My statements only come from years of programming, experience using WHMCS, and just my honest opinion.

  6. #6
    Join Date
    Feb 2012
    Posts
    18

    Default

    Quote Originally Posted by MACscr View Post
    I think Chris is still on the right track. Probably the easiest way for you to do it is to customize your servers default whm page, you know the one that says: "the site does not exist here". That way you dont have to add any data about the "parked" domain anywhere within whm.

    I think that should work, i havent tried it, the idea just popped into my head after reading this.
    Does anybody know if this will actually work.
    I've thought about putting something there just because, like ads for my services, but this would be great if it worked.
    I would really like a way to have new domain registers without hosting pointed to a default parking page on my server somewhere.

  7. #7
    Join Date
    Aug 2006
    Location
    Johannesburg, South Africa
    Posts
    1,025

    Default

    Quote Originally Posted by REVOLUTIONS inc. View Post
    Does anybody know if this will actually work.
    I've thought about putting something there just because, like ads for my services, but this would be great if it worked.
    I would really like a way to have new domain registers without hosting pointed to a default parking page on my server somewhere.
    Yes, it would work, but you still need to configure the DNS records for the domain on your server, somehow.

  8. #8
    Join Date
    Nov 2007
    Posts
    195

    Default

    Might be a bit of a long shot, but are you using a registrar that uses the LogicBoxes platform? (Resellerclub, Resell.biz, etc)

    If so, we've created a custom script that does what you have described. If a domain is registered and the customer doesn't specify any nameservers, our default branded LogicBoxes nameservers are used and the free DNS service enabled for the domain. An A record is then added to point to a parked domain page on one of our servers. (http://parked.d9hosting.com)

    Drop me a PM if you want more info on it.

  9. #9
    Join Date
    Feb 2010
    Location
    United Kingdom
    Posts
    608

    Default

    Quote Originally Posted by thernes View Post
    Thanks for the reply, but that's not what I meant

    A customer buys only a domain name from me. I then have my default nameservers set so that the domain points to ns1.myns.com, ns2.myns.com. Now, when I enter the domain I have registered, nothing happens. I would like all new domains that is registered (when it is a domain only) to have a default page that shows my own content. I'm looking for the best way to do this I hope I explained it a bit better this time )

    It all depends on the registrar, some of them allow you to setup a default page for registrations, others just have a white label page thats used, others dont have it at all, or have their own branded page.

    heartinternet allow you to use any page you want with their domain reseller account. you can also use the api to register domains but not hosting or such, unless you take on a full reseller account.

  10. #10
    Join Date
    Feb 2010
    Location
    United Kingdom
    Posts
    608

    Default

    Quote Originally Posted by REVOLUTIONS inc. View Post
    Does anybody know if this will actually work.
    I've thought about putting something there just because, like ads for my services, but this would be great if it worked.
    I would really like a way to have new domain registers without hosting pointed to a default parking page on my server somewhere.
    this is the cpanel-skel directory, anything inside it is copied into a newly provisioned account.

    so

    /home/myreselleruser/cpanel-skel/public_html/this-will-be-added-to-a-new-account.html

    will look like this when a new account is created

    /home/newaccount/public_html/this-will-be-added-to-a-new-account.html

    This means that the file you wrote and placed there will be copied to the account, using the default skel setup just puts a basic file (index.html) into the account to stop the directory index showing.

  11. #11
    Join Date
    Feb 2010
    Location
    United Kingdom
    Posts
    608

    Default

    Dependant on your server setup you might not be able to do this.

    PHP Code:
    <? include('http://www.premieronline.us/footer.php'); ?>
    Firstly, the server may not allow remote includes, secondly, the PHP may not allow short open tags. <?php is better for easy portability.

Similar Threads

  1. Default Nameservers
    By ckh in forum Feature Requests
    Replies: 3
    Last Post: 02-16-11, 12:21 AM
  2. Default user nameservers
    By Miron in forum Feature Requests
    Replies: 0
    Last Post: 05-17-08, 12:32 PM