Hostname not resolving
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.
[QUOTE]/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: [QUOTE] 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: [QUOTE] nano /etc/resolv.conf nameserver 8.8.8.8 nameserver 8.8.4.4
Also: [QUOTE] 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: [QUOTE] Hostname | Server Main IP xxx.example.com | XXX.XXX.XXX.XXX
I checked and rebuilt dnsconfig [QUOTE] /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
I ran: [QUOTE] 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: [QUOTE] nano /etc/resolv.conf nameserver 8.8.8.8 nameserver 8.8.4.4
Also: [QUOTE] 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: [QUOTE] Hostname | Server Main IP xxx.example.com | XXX.XXX.XXX.XXX
I checked and rebuilt dnsconfig [QUOTE] /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
-
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. 0 -
[quote="cPanelMichael, post: 1510161">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: [quote]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.0
Please sign in to leave a comment.
Comments
2 comments