Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 am setting up an Ubuntu (12.04) Server with a single statically-configured network interface. Every time I reboot /etc/resolv.conf seems to get reset to empty. Where can I put my DNS server address?

share|improve this question

I've just found the answer - it is to add dns-nameservers line to /etc/network/interfaces as described here.

share|improve this answer

A good general overview to DNS in 12.04 is here:

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.