resolv.conf is cleared at system reset

Bug #875949 reported by Kalle Tuulos
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I updated several computers from Ubuntu 11.04 to 11.10. In all of these computers, /etc/resolv.conf was manually maintained. All of these computers are having static IPs.

After the update was finished and computer(s) had rebooted, resolv.conf had been cleared and had only line telling that the file is generated by Networkmanager.

The error is that even if I now edit the resolv.conf to contain proper nameserver information, it is wiped clear after system reset.

Please correct the error or at least provide very clear instructions, how nameserver information can be maintained from command line.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: network-manager 0.9.1.90-0ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic-pae 3.0.4
Uname: Linux 3.0.0-12-generic-pae i686
ApportVersion: 1.23-0ubuntu3
Architecture: i386
CRDA: Error: [Errno 2] No such file or directory
Date: Sun Oct 16 23:02:05 2011
InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release i386 (20100427)
IpRoute:
 default via 192.168.1.1 dev eth1 proto static
 169.254.0.0/16 dev eth1 scope link metric 1000
 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.3 metric 1
IwConfig:
 lo no wireless extensions.

 eth1 no wireless extensions.
NetworkManager.state:
 [main]
 NetworkingEnabled=true
 WirelessEnabled=true
 WWANEnabled=true
 WimaxEnabled=true
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
RfKill:

SourcePackage: network-manager
UpgradeStatus: Upgraded to oneiric on 2011-10-16 (0 days ago)
modified.conffile..etc.NetworkManager.NetworkManager.conf: [modified]
mtime.conffile..etc.NetworkManager.NetworkManager.conf: 2011-10-16T22:36:38.791335

Revision history for this message
Kalle Tuulos (kalle-tuulos) wrote :
Revision history for this message
Kalle Tuulos (kalle-tuulos) wrote :

It seems to say "modified.conffile..etc.NetworkManager.NetworkManager.conf: [modified]" in the error information. It is because I have tried to solve the problem by following instructions from several places with this one computer, no luck. Rest of computers are waiting that I'll get the problem solved in this one computer first.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in network-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Kalle Tuulos (kalle-tuulos) wrote :

Replying to myself (and maybe others having the same problem): workaround for this error is to forcibly write protect the /etc/resolv.conf file with following command:

sudo chattr +i /etc/resolv.conf

This prevents NetworkManager from overwriting the file.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.