[gutsy] network-manager overwrites /etc/resolv.conf on DHCP connect and doesn't restore it

Bug #130496 reported by Andrew Gorcester
16
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]

description: updated
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote :

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.

Changed in network-manager:
status: New → Incomplete
Revision history for this message
Andrew Gorcester (andrewsg) wrote :

After some testing, it appears that the bug no longer occurs in my specific case. network-manager correctly switches from the DHCP-acquired DNS information on the wired connection to the manually set DNS information on the wireless connection and back again without assistance. Thank you for following up on this bug.

Revision history for this message
Brian Murray (brian-murray) wrote :

This bug report is being closed due to your last comment regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the drop down box. You can learn more about bug statuses at http://wiki.ubuntu.com/Bugs/Status . Thank you again for taking the time to report this bug and helping to make Ubuntu better. Feel free to submit any future bugs you may find.

Changed in network-manager:
assignee: nobody → brian-murray
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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