Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

2 Answers

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

share|improve this answer
add comment

A good general overview to DNS in 12.04 is here: http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/

share|improve this answer
add comment

Your Answer

 
discard

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.