Keelan

Member
Nov 16, 2013
13
0
1
cPanel Access Level
Root Administrator
Like others i am having a hostname resolving issue. I have googled and searched the forums. This is my finds so far:

I moved my WHM/cPanel installation to a new server. After changing the nameserver IP's and then after a little while the domains to started pointing to the new server.

However the hostname doesn't resolve to an IP address.

/scripts/ipcheck --verbose


IMPORTANT: Do not ignore this email.

Your hostname (xxx.example.com) could not be resolved to an
IP address. This means that /etc/hosts is not set up correctly,
and/or there is no dns entry for xxx.example.com. Please be
sure that the contents of /etc/hosts are configured correctly, and
also that there is a correct 'A' entry for the domain in the zone
file.

Some or all of these problems can be caused by /etc/resolv.conf
being setup incorrectly. Please check that file if you believe
everything else is correct.

You may be able to automatically correct this problem by using the
'Add an A entry for your hostname' option under 'Dns Functions' in
your Web Host Manager.

I ran:
nano /etc/hosts


# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
XXX.XXX.XXX.XXX xxx.example.com xxx
I also check:
nano /etc/resolv.conf

nameserver 8.8.8.8
nameserver 8.8.4.4
Also:
nano /etc/nameserverips

XXX.XXX.XXX.XXX=ns1.example.com
XXX.XXX.XXX.XXX=ns2.example.com
I checked the "Add an A Entry for your hostname" in WHM:
Hostname | Server Main IP
xxx.example.com | XXX.XXX.XXX.XXX
I checked and rebuilt dnsconfig
/scripts/rebuildingdnsconfig
I am really not sure what else to check, i have rebooted the server. The domains pointing to the name servers work fine. THe problem i am having is i route all cpanel access and SSL configs for the emails through https://xxx.example.com because this has the SSL cert. I have compared the settings to the older server and they are the same except the IP address.

Centos 6.4 WHM 11.40.0 Build 19

XXX.XXX.XXX = Server IPs
xxx.example.com = hostname
Any help would be appreciated.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

Have you verified the domain name associated with the hostname is using name servers with IP addresses associated with the new server? You can use a website such as IntoDNS to verify this if you are not comfortable using the "dig" utility on the command line.

Thank you.
 

Keelan

Member
Nov 16, 2013
13
0
1
cPanel Access Level
Root Administrator
Hello :)

Have you verified the domain name associated with the hostname is using name servers with IP addresses associated with the new server? You can use a website such as IntoDNS to verify this if you are not comfortable using the "dig" utility on the command line.

Thank you.
It turns out on the:

"Add an A Entry for your hostname" in WHM:

Hostname | Server Main IP
xxx.example.com | XXX.XXX.XXX.XXX
It already showed the above but on the domain example.com there was no A record for xxx. So i was told by lovely cPanel support to click the "Add" button again, so the A entry was written to the domain. After a little while everything began to work.

I just presumed that it showing the IP already there that it was correct. Really i should have been looking under the records for example.com.