Problem WHM and nameservers points to different domain.

antonelos

Registered
Sep 9, 2014
1
0
1
cPanel Access Level
Root Administrator
Hi to everyone and nice to meet you!

Recently we transferred our domains to a new dedicated server with whm.
We've been experiencing a problem since then. After the configuration of whm
we created the nameservers ns1.foo.com & ns2.foo.com, but when someone hit those nameservers on the url bar (http://ns1.foo.com), returns the content of another domain inside the server (which by the way was the first domain i transferred to the new server). After that we tried to change the A records of ns1.foo.com & ns2.foo.com from DNS Functions > Edit DNS Zone to another IP that hosts the domain foo.com (because of an SSL), then the nameservers changed and were pointing to the subdomain example.foo.com instead of foo.com. We don't know what else needs to be done in order for the nameservers to resolve as supposed to e.g. foo.com.

1. when hit http://ns1.foo.com on the url bar you see the content of foofoo.com
2. when change the IP to the dedicated and hit http://ns1.foo.com you see the content of http://example.foo.com
3. foofoo.com was the first domain transferred to the server and foo.com has a dedicated IP because of an SSL.

Thank you for you time,
Regards,
Antonis.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

It's normal to see the contents of the default VirtualHost for an IP address when accessing a subdomain that does not exist in the Apache configuration. There is a thread on modifying the default VirtualHost at:

Default content for IP address

Thank you.