Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 www.nano-editor.org... failed: Name or service not known.

root@dub:/home/malachi# ping google.com
ping: unknown host google.com

How would I go about enabling this? thanks?


resolved - I used google public dns:

vi /etc/resolv.conf

and inserted

share|improve this question

1 Answer 1

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.