hi, if you are visiting my post here its probably because you have a problem with your pinging a particular domain. for example, today i was troubleshooting my network connection on a server and for some reason i was able to ping the ip address 72.30.2.43 which is for yahoo.com, but whenver i tried to ping yahoo.com, it would timed out.

so what is the problem and how do you fix this? well, the answer is very simple, the reason why you can't ping a domain name is because you have not setup you DNS nameservers on your computer that you are trying to ping from.

for example, if you have linux, which is what i have, i tried to ping yahoo using this command:

ping yahoo.com

i would get and error saying: host not found

so how do you fix this? well, you will have to edit your resolv.conf configuration file. you can use this command:

vi /etc/resolv.conf

and make sure it looks like this:
; generated by /sbin/dhclient-script
search


as you can see from the output of my resolv.conf file, it does not have any nameservers. so change it to this:
; generated by /sbin/dhclient-script
search yourdomain.com
nameserver 202.54.1.10
nameserver 202.54.1.1


note: be sure to change 'yourdomain.com' to whatever you have set your domain on your server.
also notice that i have put two nameserver, one is the primary and the other one is the secondary.

once you have made and saved the changes to the resolv.conf file, restart your network and you should be able to ping yahoo.com