Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

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.