← Back to team overview

desktop-packages team mailing list archive

[Bug 875949] Re: resolv.conf is cleared at system reset

 

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.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/875949

Title:
  resolv.conf is cleared at system reset

Status in “network-manager” package in Ubuntu:
  Confirmed

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/875949/+subscriptions


References