[gutsy] network-manager overwrites /etc/resolv.conf on DHCP connect and doesn't restore it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Fix Released
|
Undecided
|
Brian Murray |
Bug Description
Binary package hint: network-manager
My normal connection is wireless, with a static ip and manually set DNS info. When I temporarily connect my computer to a wired network, network-manager automatically configures using DHCP. In doing so, it overwrites the manual DNS info in /etc/resolv.conf with the DNS info from DHCP completely. When the wired line is disconnected, wireless doesn't work because the manually set DNS info is not restored. This happens even when the original DNS info in /etc/resolv.conf was set manually through network-manager itself.
I assume the culprit is network-manager in this case because the overwritten /etc/resolv.conf appears as follows (some whitespace removed):
# generated by NetworkManager, do not edit!
nameserver 192.168.2.1
This happens on Ubuntu 7.10 testing, Tribe 3, up-to-date as of 2007-08-05. network-manger version is 0.6.5-0ubuntu7. The install is one day old and relatively clean. I'm not sure if the bug is gutsy-specific or not.
This bug is probably related to [#126592 resolv.conf overwritten on dhcp renew when using NetworkManager vpn plugins]
Thank you for taking the time to report this bug and helping to make Ubuntu better. Now that the final version of Gutsy Gibbon is available we were wondering if this issue still exists. Thanks in advance.