← Back to team overview

desktop-packages team mailing list archive

[Bug 867833] Re: Network Manager overwriting /etc/resolv.conf with no information when static IP configured for ipv4

 

Network Manager is used for much more than configuring wired
networking...  I use the network interface file to configure my wired
connections (because I require the use of VLANs and Bridges - which
Network Manager does not provide).  However on some machines I still
need network manager for the use of Wireless networks and PPTP.

Either way lets not get too far off track.

Uninstalling Network-Manager is a workaround IF you have no need for
Network-Manager.

Workarounds aside...  This is a regression, this did not occur in 11.04
and is clearly not "as designed" so the problem should be identified and
fixed...

Another workaround is:

Prevent changes to the file
# chattr +i /etc/resolv.conf
Undo previous command
# chattr -i /etc/resolv.conf

-matt

-- 
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/867833

Title:
  Network Manager overwriting /etc/resolv.conf with no information when
  static IP configured for ipv4

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

Bug description:
  After a reboot, /etc/resolv.conf is blank and only contains the line

  # Generated by NetworkManager

  The computer is configured for a static IP address using (in XFCE)
  Settings -> Network Connections and contains a valid DNS entry.

  In order for the computer to access the internet, I must edit /etc/resolv.conf and insert
  nameserver 8.8.8.8

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: network-manager 0.9.1.90-0ubuntu2
  ProcVersionSignature: Ubuntu 3.0.0-10.16-server 3.0.4
  Uname: Linux 3.0.0-10-server x86_64
  ApportVersion: 1.23-0ubuntu2
  Architecture: amd64
  CRDA: Error: [Errno 2] No such file or directory
  Date: Tue Oct  4 14:48:03 2011
  Gconf:
   
  InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Release amd64 (20110426)
  IpRoute:
   default via 192.168.10.1 dev eth0  metric 100 
   169.254.0.0/16 dev eth0  scope link  metric 1000 
   192.168.10.0/24 dev eth0  proto kernel  scope link  src 192.168.10.11
  IwConfig:
   lo        no wireless extensions.
   
   eth0      no wireless extensions.
  Keyfiles: Error: [Errno 2] No such file or directory
  NetworkManager.state:
   [main]
   NetworkingEnabled=true
   WirelessEnabled=true
   WWANEnabled=true
  ProcEnviron:
   SHELL=/bin/bash
   LANG=en_US.UTF-8
  RfKill:
   
  SourcePackage: network-manager
  UpgradeStatus: Upgraded to oneiric on 2011-09-05 (29 days ago)

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


References