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

jcall

Registered
Sep 3, 2008
1
0
51
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
 

lal

Registered
Feb 1, 2008
2
0
51
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.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
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.
 

lal

Registered
Feb 1, 2008
2
0
51
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.