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.

DNS domain created in WHM, can't see in cPanel

Discussion in 'Bind / DNS / Nameserver Issues' started by jcall, Sep 3, 2008.

  1. jcall

    jcall Registered

    Joined:
    Sep 3, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I have a client who has created two domains in WHM, and assigned them to a user. When I login to cPanel, I can see those domains is under the Statistics Software Configuration area, but not under add-on domains or parked domains.

    These 2 new domains should act as independent websites, but are currently just loading the "main website."

    In other words:
    - Customer already had domain1.com, and added domains (registered to him already, name servers already pointing to this dedicated server) domain2.com and domain3.com via WHM. WHM shows domain2.com and domain3.com as being assigned to user1. I can login to WHM and see both domain2.com and domain3.com as DNS zones, but not as subdomains or parked domains.
    - I login to cPanel as user1, and do not see domain2.com or domain3.com as subdomains or as parked domains (just like WHM shows).

    If I browse to http://domain2.com I get the exact same content as http://domain1.com.

    How can I set domain2.com and domain3.com as being subdomains?

    I tried deleting the domain3.com zone within WHM, then adding it as a subdomain in cPanel (which I thought would re-add the domain) but I got an error that the domain already existed in BIND.

    Ideas?

    Thanks!

    -jared
     
  2. lal

    lal Registered

    Joined:
    Feb 1, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    You can check for the zone files in /var/named/domain3.com.db. If it exists then the domain was not correctly deleted. Try terminating that account first and then delete. Then goto the cpanel of domain1 and add domain2 & domain3 in the subdomains or addon domains option in that.

    Hope this will work for you.
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    How are these domains being created in WHM?

    If you are using the Add a DNS Zone method, those will be transformed into Parked domains next time httpd.conf is distilled and rebuilt.
     
  4. lal

    lal Registered

    Joined:
    Feb 1, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Instead of adding a DNS zone in WHM its always better to go into the control panel of domain1 and adding the other two domains as addon domains in controlpanel itself. The entries in apache configuration file and DNS configuration files will be done by the cpanel scripts. You can always check it in http.conf, named.conf files. Also check the domains in /etc/userdomains.
     
Loading...

Share This Page