Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have just installed ubuntu-8.04-x86-default on my vps and am trying to apt-get update but am getting errors to do with resolving urls.

This is happening with every link that I am going to which makes me think dns isn't working.

Resolving failed: Name or service not known.

root@dub:/home/malachi# ping
ping: unknown host

How would I go about enabling this? thanks?


resolved - I used google public dns:

vi /etc/resolv.conf

and inserted

share|improve this question
up vote 1 down vote accepted

Your hosting company should provide you with name servers you could use. This would probably be beneficial for both of you, as they tend to be much closer to your server's physical location and therefore

a) reply faster than google's name servers and

b) create less traffic on the ISP's connection to the rest of the world.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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