resolv.conf resets on system boot

Asked by Kalle Tuulos on 2011-10-16

I updated several home computers from Ubuntu 11.04 to 11.10. Those computers had been installed originally using some earlier versions of Ubuntu (latest original installations were 10.04, oldest something like 08.04) and they have been updated from version to version since the original installations.

All of these computers have fixed IP address and I have also configured manually the resolv.conf to have proper name servers.

On this latest update, from 11.04 to 11.10, all my home Ubuntu computers dropped away from DNS services. I noticed that all of these have empty resolv.conf, except title line telling that these files are generated by Networkmanager.

I have never used any network managers to configure my Linux computers, as I have always configures those from command line. Question: How I can make the resolf.conf to keep its configuration?

Question information

English Edit question
Ubuntu gnome-nettool Edit question
No assignee Edit question
Last query:
Last reply:

After applying the correct changes to the /etc/resolv.conf file, use the following command to ensure that not even root can modify the contents:

sudo chattr +i /etc/resolv.conf

For more info about the chattr command, run the following command:

man chattr

Kalle Tuulos (kalle-tuulos) said : #2

Yes, I know this as workaround, but what is the proper way of doing this in Ubuntu 11.10?

So I don't yet accept this as as solution.

Can you help with this problem?

Provide an answer of your own, or ask Kalle Tuulos for more information if necessary.

To post a message you must log in.