Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
Unable to resolve hostname to ip

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

share|improve this question

marked as duplicate by Sathya Jun 20 '12 at 18:40

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
What error are you receiving? hostname unreachable? –  John T Dec 11 '09 at 20:48
    
Would you perhaps be so polite as to mark the answer as such? :) –  Zsub Apr 1 '10 at 19:50

1 Answer 1

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

share|improve this answer
    
Thanks for the tip –  Graham Clarke Dec 11 '09 at 21:04