DNS Issue- Nameserver Issue
- by Master-Man
I setup new server on centos 5.3 and configure dns and hostnam using WHM.
I also register my new nameservers with my domain registrar with ns1.example.com and ns2.example.com.
But i am unable to ping hostname and NS. ping pc2.example.com or ping ns1.example.com
I received the below email from server.
IMPORTANT: Do not ignore this email.
Your hostname (pc2.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 pc2.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.
When I issue the command
root@pc[~]# host pc2.example.com
I receive the below error that
Host pc2.example.com not found: 3(NXDOMAIN)
I added A entries for hostname and Nameservers but nothing replies.
Its almost more than 72 hours for setting & registering nameservers and dns configurations.
thanks,