Super User is a question and answer site for computer enthusiasts and power users. 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 running Ubuntu 10.10, and my network is configured using the Network Manager. I have made some changes to /etc/resolv.conf but these changes are refreshed back to how they were before on each reboot.

I have a feeling the Network Manager has a role to play here. I am wondering how can I make my changes permanent? (I don't want to disable the Network Manager)

share|improve this question
up vote 6 down vote accepted

The network manager is overwriting your resolv.conf. If you want to manually add settings to your resolv.conf, use network manager to add them.

In the Network Connections window, select the network you want to change, click Edit, click IPv4 settings, change the method from "Automatic (DHCP)" to "Automatic (DHCP) Addresses Only", and add your DNS servers/domains in the entry boxes.

share|improve this answer

If you want to stop the resolv.conf file from being overwritten enter this command:

sudo chattr +i /etc/resolv.conf

This makes your files immutable which means that even root will not be able to change or delete the file. To revert that just change the +i to -i, then you will be able to write to the file again.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .