[Pkg-utopia-maintainers] Bug#598911: network-manager-gnome: DNS servers disappear from /etc/resolv.conf when connecting USB WiFi
Márton Németh
nm127 at freemail.hu
Sun Oct 3 07:53:42 UTC 2010
Package: network-manager-gnome
Version: 0.8.1-1
Severity: normal
I have an Internet connection via the eth0 interface, PPPoE. After the boot
finished the connection to the Internet is working fine. Then I connect an USB
WiFi configured for ad-hoc mode. The current result is that the WiFi ad-hoc
network is set up and the DNS servers are removed from the /etc/resolv.conf
file. This brakes further name resolutions.
Note that this scenario was working before I upgraded my Debian system.
Unfortunately I cannot say exact version numbers which was working correctly.
And now the details. After the boot I have the following state:
$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:90:f5:3e:5a:ca
inet6 addr: fe80::290:f5ff:fe3e:5aca/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:724 errors:0 dropped:0 overruns:0 frame:0
TX packets:670 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:205309 (200.4 KiB) TX bytes:85052 (83.0 KiB)
Interrupt:19 Base address:0x1000
eth0:avahi Link encap:Ethernet HWaddr 00:90:f5:3e:5a:ca
inet addr:169.254.9.143 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:19 Base address:0x1000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:800 (800.0 B) TX bytes:800 (800.0 B)
ppp0 Link encap:Point-to-Point Protocol
inet addr:78.131.104.119 P-t-P:10.0.0.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:430 errors:0 dropped:0 overruns:0 frame:0
TX packets:420 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:177779 (173.6 KiB) TX bytes:50384 (49.2 KiB)
$ nm-tool
NetworkManager Tool
State: disconnected
- Device: eth0
-----------------------------------------------------------------
Type: Wired
Driver: 8139too
State: unmanaged
Default: no
HW Address: 00:90:F5:3E:5A:CA
Capabilities:
Carrier Detect: yes
Speed: 100 Mb/s
Wired Properties
Carrier: on
$ cat /etc/resolv.conf
nameserver 193.110.57.4
nameserver 193.110.56.8
# Generated by NetworkManager
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
$
Then I stop the NetworkManager and run it from console to see the outputs:
# /etc/init.d/network-manager stop
Stopping network connection manager: NetworkManager.
# NetworkManager --no-daemon
NetworkManager[2579]: <info> NetworkManager (version 0.8.1) is starting...
NetworkManager[2579]: <info> Read config file
/etc/NetworkManager/NetworkManager.conf
NetworkManager[2579]: <info> modem-manager is now available
NetworkManager[2579]: SCPlugin-Ifupdown: init!
NetworkManager[2579]: SCPlugin-Ifupdown: update_system_hostname
NetworkManager[2579]: SCPluginIfupdown: guessed connection type (eth0) =
802-3-ethernet
NetworkManager[2579]: SCPlugin-Ifupdown:
update_connection_setting_from_if_block: name:eth0, type:802-3-ethernet,
id:Ifupdown (eth0), uuid: 681b428f-beaf-8932-dce4-687ed5bae28e
NetworkManager[2579]: SCPluginIfupdown: guessed connection type (dsl-
provider) = ppp
NetworkManager[2579]: SCPlugin-Ifupdown:
update_connection_setting_from_if_block: name:dsl-provider, type:ppp,
id:Ifupdown (dsl-provider), uuid: 7f0642ca-ec01-5108-0d76-79ad61f51236
NetworkManager[2579]: nm-ifupdown-connection.c.119 - invalid connection read
from /etc/network/interfaces: (3) type
NetworkManager[2579]: SCPlugin-Ifupdown: autoconnect
NetworkManager[2579]: SCPluginIfupdown: management mode: unmanaged
NetworkManager[2579]: SCPlugin-Ifupdown: devices added (path:
/sys/devices/pci0000:00/0000:00:08.0/net/eth0, iface: eth0)
NetworkManager[2579]: SCPluginIfupdown: locking wired connection setting
NetworkManager[2579]: SCPlugin-Ifupdown: devices added (path:
/sys/devices/virtual/net/lo, iface: lo)
NetworkManager[2579]: SCPlugin-Ifupdown: device added (path:
/sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration found.
NetworkManager[2579]: SCPlugin-Ifupdown: devices added (path:
/sys/devices/virtual/net/pan0, iface: pan0)
NetworkManager[2579]: SCPlugin-Ifupdown: device added (path:
/sys/devices/virtual/net/pan0, iface: pan0): no ifupdown configuration found.
NetworkManager[2579]: SCPlugin-Ifupdown: devices added (path:
/sys/devices/virtual/net/ppp0, iface: ppp0)
NetworkManager[2579]: SCPlugin-Ifupdown: device added (path:
/sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
NetworkManager[2579]: SCPlugin-Ifupdown: end _init.
NetworkManager[2579]: <info> Loaded plugin ifupdown: (C) 2008 Canonical Ltd.
To report bugs please use the NetworkManager mailing list.
NetworkManager[2579]: <info> Loaded plugin keyfile: (c) 2007 - 2008 Red Hat,
Inc. To report bugs please use the NetworkManager mailing list.
NetworkManager[2579]: Ifupdown: get unmanaged devices count: 1
NetworkManager[2579]: SCPlugin-Ifupdown: (168365856) ... get_connections.
NetworkManager[2579]: SCPlugin-Ifupdown: (168365856) ... get_connections
(managed=false): return empty list.
NetworkManager[2579]: Ifupdown: get unmanaged devices count: 1
NetworkManager[2579]: <info> WiFi enabled by radio killswitch; enabled by state
file
NetworkManager[2579]: <info> WWAN enabled by radio killswitch; enabled by state
file
NetworkManager[2579]: <info> WiMAX enabled by radio killswitch; enabled by
state file
NetworkManager[2579]: <info> Networking is enabled by state file
NetworkManager[2579]: <info> (eth0): carrier is ON
NetworkManager[2579]: <info> (eth0): new Ethernet device (driver: '8139too'
ifindex: 2)
NetworkManager[2579]: <info> (eth0): exported as
/org/freedesktop/NetworkManager/Devices/0
NetworkManager[2579]: <warn> /sys/devices/virtual/net/pan0: couldn't determine
device driver; ignoring...
/sbin/ifup: interface lo already configured
NetworkManager[2579]: <warn> bluez error getting default adapter: No such
adapter
Everything is fine so far. Now I connect the USB WiFi adapter:
NetworkManager[2579]: <info> found WiFi radio killswitch rfkill0 (at
/sys/devices/pci0000:00/0000:00:10.3/usb1/1-3/1-3:1.0/ieee80211/phy0/rfkill0)
(driver <unknown>)
NetworkManager[2579]: SCPlugin-Ifupdown: devices added (path:
/sys/devices/pci0000:00/0000:00:10.3/usb1/1-3/1-3:1.0/net/wlan1, iface: wlan1)
NetworkManager[2579]: SCPlugin-Ifupdown: device added (path:
/sys/devices/pci0000:00/0000:00:10.3/usb1/1-3/1-3:1.0/net/wlan1, iface: wlan1):
no ifupdown configuration found.
NetworkManager[2579]: <info> (wlan1): driver supports SSID scans (scan_capa
0x01).
NetworkManager[2579]: <info> (wlan1): new 802.11 WiFi device (driver: 'rt73usb'
ifindex: 5)
NetworkManager[2579]: <info> (wlan1): exported as
/org/freedesktop/NetworkManager/Devices/1
NetworkManager[2579]: <info> (wlan1): now managed
NetworkManager[2579]: <info> (wlan1): device state change: 1 -> 2 (reason 2)
NetworkManager[2579]: <info> (wlan1): bringing up device.
NetworkManager[2579]: <info> (wlan1): preparing device.
NetworkManager[2579]: <info> (wlan1): deactivating device (reason: 2).
NetworkManager[2579]: <info> (wlan1): supplicant interface state: starting ->
ready
NetworkManager[2579]: <info> (wlan1): device state change: 2 -> 3 (reason 42)
NetworkManager[2579]: <info> Activation (wlan1) starting connection
'HelloWorld'
NetworkManager[2579]: <info> (wlan1): device state change: 3 -> 4 (reason 0)
NetworkManager[2579]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare)
scheduled...
NetworkManager[2579]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare)
started...
NetworkManager[2579]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure)
scheduled...
NetworkManager[2579]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare)
complete.
NetworkManager[2579]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure)
starting...
NetworkManager[2579]: <info> (wlan1): device state change: 4 -> 5 (reason 0)
NetworkManager[2579]: <info> Activation (wlan1/wireless): connection
'HelloWorld' requires no security. No secrets needed.
NetworkManager[2579]: <info> Config: added 'ssid' value 'HelloWorld'
NetworkManager[2579]: <info> Config: added 'mode' value '1'
NetworkManager[2579]: <info> Config: added 'frequency' value '2412'
NetworkManager[2579]: <info> Config: added 'key_mgmt' value 'NONE'
NetworkManager[2579]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure)
complete.
NetworkManager[2579]: <info> (wlan1): supplicant connection state:
disconnected -> scanning
NetworkManager[2579]: <info> (wlan1): supplicant connection state: scanning ->
disconnected
NetworkManager[2579]: <info> Config: set interface ap_scan to 2
NetworkManager[2579]: <info> (wlan1): supplicant connection state:
disconnected -> scanning
NetworkManager[2579]: <info> (wlan1): supplicant connection state: scanning ->
associating
NetworkManager[2579]: <info> (wlan1): supplicant connection state: associating
-> associated
NetworkManager[2579]: <info> (wlan1): supplicant connection state: associated
-> completed
NetworkManager[2579]: <info> Activation (wlan1/wireless) Stage 2 of 5 (Device
Configure) successful. Connected to wireless network 'HelloWorld'.
NetworkManager[2579]: <info> Activation (wlan1) Stage 3 of 5 (IP Configure
Start) scheduled.
NetworkManager[2579]: <info> Activation (wlan1) Stage 3 of 5 (IP Configure
Start) started...
NetworkManager[2579]: <info> (wlan1): device state change: 5 -> 7 (reason 0)
NetworkManager[2579]: <info> Activation (wlan1) Stage 4 of 5 (IP4 Configure
Get) scheduled...
NetworkManager[2579]: <info> Activation (wlan1) Stage 3 of 5 (IP Configure
Start) complete.
NetworkManager[2579]: <info> Activation (wlan1) Stage 4 of 5 (IP4 Configure
Get) started...
NetworkManager[2579]: <info> Activation (wlan1) Stage 5 of 5 (IP Configure
Commit) scheduled...
NetworkManager[2579]: <info> Activation (wlan1) Stage 4 of 5 (IP4 Configure
Get) complete.
NetworkManager[2579]: <info> Activation (wlan1) Stage 5 of 5 (IP Configure
Commit) started...
NetworkManager[2579]: <info> Executing: /sbin/iptables --table filter --insert
INPUT --in-interface wlan1 --protocol tcp --destination-port 53 --jump ACCEPT
NetworkManager[2579]: <info> Executing: /sbin/iptables --table filter --insert
INPUT --in-interface wlan1 --protocol udp --destination-port 53 --jump ACCEPT
NetworkManager[2579]: <info> Executing: /sbin/iptables --table filter --insert
INPUT --in-interface wlan1 --protocol tcp --destination-port 67 --jump ACCEPT
NetworkManager[2579]: <info> Executing: /sbin/iptables --table filter --insert
INPUT --in-interface wlan1 --protocol udp --destination-port 67 --jump ACCEPT
NetworkManager[2579]: <info> Executing: /sbin/iptables --table filter --insert
FORWARD --in-interface wlan1 --jump REJECT
NetworkManager[2579]: <info> Executing: /sbin/iptables --table filter --insert
FORWARD --out-interface wlan1 --jump REJECT
NetworkManager[2579]: <info> Executing: /sbin/iptables --table filter --insert
FORWARD --in-interface wlan1 --out-interface wlan1 --jump ACCEPT
NetworkManager[2579]: <info> Executing: /sbin/iptables --table filter --insert
FORWARD --source 10.42.43.0/255.255.255.0 --in-interface wlan1 --jump ACCEPT
NetworkManager[2579]: <info> Executing: /sbin/iptables --table filter --insert
FORWARD --destination 10.42.43.0/255.255.255.0 --out-interface wlan1 --match
state --state ESTABLISHED,RELATED --jump ACCEPT
NetworkManager[2579]: <info> Executing: /sbin/iptables --table nat --insert
POSTROUTING --source 10.42.43.0/255.255.255.0 --destination !
10.42.43.0/255.255.255.0 --jump MASQUERADE
NetworkManager[2579]: <info> Starting dnsmasq...
NetworkManager[2579]: <info> (wlan1): device state change: 7 -> 8 (reason 0)
NetworkManager[2579]: <info> Activation (wlan1) successful, device activated.
NetworkManager[2579]: <info> Activation (wlan1) Stage 5 of 5 (IP Configure
Commit) complete.
Here comes the state where the DNS servers are removed from /etc/resolv.conf:
$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:90:f5:3e:5a:ca
inet6 addr: fe80::290:f5ff:fe3e:5aca/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:928 errors:0 dropped:0 overruns:0 frame:0
TX packets:848 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:246976 (241.1 KiB) TX bytes:105723 (103.2 KiB)
Interrupt:19 Base address:0x1000
eth0:avahi Link encap:Ethernet HWaddr 00:90:f5:3e:5a:ca
inet addr:169.254.9.143 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:19 Base address:0x1000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:44 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3392 (3.3 KiB) TX bytes:3392 (3.3 KiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:78.131.104.119 P-t-P:10.0.0.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:532 errors:0 dropped:0 overruns:0 frame:0
TX packets:525 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:210962 (206.0 KiB) TX bytes:62391 (60.9 KiB)
wlan1 Link encap:Ethernet HWaddr 00:1f:1f:3a:fd:b3
inet addr:10.42.43.1 Bcast:10.42.43.255 Mask:255.255.255.0
inet6 addr: fe80::21f:1fff:fe3a:fdb3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:6466 (6.3 KiB)
$ nm-tool
NetworkManager Tool
State: connected
- Device: eth0
-----------------------------------------------------------------
Type: Wired
Driver: 8139too
State: unmanaged
Default: no
HW Address: 00:90:F5:3E:5A:CA
Capabilities:
Carrier Detect: yes
Speed: 100 Mb/s
Wired Properties
Carrier: on
- Device: wlan1 [HelloWorld]
--------------------------------------------------
Type: 802.11 WiFi
Driver: rt73usb
State: connected
Default: no
HW Address: 00:1F:1F:3A:FD:B3
Capabilities:
Wireless Properties
WEP Encryption: yes
WPA Encryption: yes
WPA2 Encryption: yes
Wireless Access Points (* = current AP)
Kriszta: Infra, D8:5D:4C:A5:E4:92, Freq 2412 MHz, Rate 54 Mb/s,
Strength 31 WEP
*HelloWorld: Ad-Hoc, 8A:C8:8C:98:4F:FD, Freq 2412 MHz, Rate 0 Mb/s,
Strength 255
IPv4 Settings:
Address: 10.42.43.1
Prefix: 24 (255.255.255.0)
Gateway: 0.0.0.0
$ cat /etc/resolv.conf
# Generated by NetworkManager
$
Please let me know if you need further information.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=hu_HU.UTF-8, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages network-manager-gnome depends on:
ii dbus-x11 1.2.24-3 simple interprocess messaging syst
ii gconf2 2.28.1-3 GNOME configuration database syste
ii gnome-icon-theme 2.30.3-1 GNOME Desktop icon theme
ii libatk1.0-0 1.30.0-1 The ATK accessibility toolkit
ii libc6 2.11.2-6 Embedded GNU C Library: Shared lib
ii libcairo2 1.8.10-6 The Cairo 2D vector graphics libra
ii libdbus-1-3 1.2.24-3 simple interprocess messaging syst
ii libdbus-glib-1-2 0.88-2 simple interprocess messaging syst
ii libfontconfig1 2.8.0-2.1 generic font configuration library
ii libfreetype6 2.4.2-1 FreeType 2 font engine, shared lib
ii libgconf2-4 2.28.1-3 GNOME configuration database syste
ii libglade2-0 1:2.6.4-1 library to load .glade files at ru
ii libglib2.0-0 2.24.2-1 The GLib library of C routines
ii libgnome-bluetooth7 2.30.0-2 GNOME Bluetooth tools - support li
ii libgnome-keyring0 2.30.1-1 GNOME keyring services library
ii libgtk2.0-0 2.20.1-1+b1 The GTK+ graphical user interface
ii libnm-glib-vpn1 0.8.1-2+b1 network management framework (GLib
ii libnm-glib2 0.8.1-2+b1 network management framework (GLib
ii libnm-util1 0.8.1-2+b1 network management framework (shar
ii libnotify1 [libnotify1- 0.5.0-2 sends desktop notifications to a n
ii libpango1.0-0 1.28.1-1 Layout and rendering of internatio
ii libxml2 2.7.7.dfsg-4 GNOME XML library
ii network-manager 0.8.1-2+b1 network management framework daemo
ii policykit-1-gnome 0.96-2 GNOME authentication agent for Pol
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages network-manager-gnome recommends:
ii gnome-bluetooth 2.30.0-2 GNOME Bluetooth tools
ii libpam-gnome-keyring [libpam- 2.30.3-1 PAM module to unlock the GNOME key
ii mobile-broadband-provider-inf 20100910-1 database of mobile broadband servi
ii notification-daemon 0.5.0-2 daemon to displays passive pop-up
Versions of packages network-manager-gnome suggests:
pn network-manager-openvpn-gnome <none> (no description available)
pn network-manager-pptp-gnome <none> (no description available)
pn network-manager-vpnc-gnome <none> (no description available)
-- no debconf information
More information about the Pkg-utopia-maintainers
mailing list