The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Allow parked domains that aren't actually parked

Discussion in 'General Discussion' started by PRSBOY, Sep 17, 2009.

  1. PRSBOY

    PRSBOY Member

    Joined:
    May 25, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Is there a way to allow a parking of newly created domains so that when they register then they point straight to the server and a temp 'Parked By xxx' page.

    I'd like to do this without having to actually park a domain onto an account, much like when you register a domain with godaddy for example.

    Cheers
     
  2. MattCurry

    MattCurry Well-Known Member

    Joined:
    Aug 18, 2009
    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Houston, Tx
    Parked Domains

    Hello,

    After looking at your request there is a pretty simple way to resolve this issue, and that would be for you to create a page that you would like to show up in your case when there is a domain with no account assigned. and put it in /usr/local/apache/htdocs/ (replace index.html), and that should do it. Please let me know if you have any other questions.

    Thank you,
    Matthew Curry
     
  3. PRSBOY

    PRSBOY Member

    Joined:
    May 25, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    I was hoping it would be as easy as that, however, named is returning NORECORDS which causes the page not to be found (as there is no IP to point it at).

    I was trying to add a root zone in my named.conf like so:

    Code:
    zone "." {
    type master;
    file "/var/named/root.db";
    };
    and then in root.db:
    Code:
    $TTL 14400
    
    . 86400 IN SOA ns1.mydomain.com. mydomain.com. ( [serial, refresh, retry, expire, minimum] )
    . 86400 IN NS ns1.mydomain.com.
    . 86400 IN NS ns2.mydomain.com.
    . 14400 IN A [serverip]
    but that hasn't worked.
     
Loading...

Share This Page