vote up 0 vote down star

Hi - I have a centos 5 box and can ping outside by IP but not by hostname.

For example, ping to a known server works fine using IP but not with HOSTNAME.

Any ideas how to trouble shoot this? Other computers inside the network are fine.

Thanks, Graham

flag
What error are you receiving? hostname unreachable? – John T Dec 11 at 20:48

1 Answer

vote up 2 vote down

You probably have an incorrect dns server set. Check /etc/resolv.conf and make sure nameserver xxx.xxx.xxx.xxx is your actual DNS server

link|flag
Thanks for the tip – Graham Clarke Dec 11 at 21:04

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.