Reset resolv.conf on disconnect/exit

Bug #447466 reported by Zordrak
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wicd
Fix Released
Wishlist
Adam Blackburn

Bug Description

wicd overwrites /etc/resolv.conf to set name service info when it sets DHCP information, but does not change it back afterwards making the change persistent. In my case, I infrequently use wicd tograp a wi-fi connection when necessary, but the laptop spends most of its time with a static IP in a docking station. So if I have used wireless, when it goes back to the dock, the IP address etc is correctly set (by the OS during boot) but the resolv.conf is not set as its a persistent configuration file, so I have to copy a clean file over it or rewrite it each time.

I would like wicd to provide a "Restore Name Servers on Disconnect / Exit" option so that it may leave the resolv.conf how it found it, letting people easily dip in and out of wicd.

Related branches

Changed in wicd:
importance: Undecided → Wishlist
milestone: none → 1.6.3
status: New → Confirmed
Revision history for this message
Robby Workman (rworkman) wrote :

I just might be wrong, but I think this is something that your dhcp client should do. I seem to recall that dhcpcd puts the file back like it was before it was invoked.

Revision history for this message
Robby Workman (rworkman) wrote :

Heh. I just realized who reported this. Zordrak, you're a Slackware user, so you use dhcpcd, so I guess I'm wrong. :/

Revision history for this message
Zordrak (7-launchpad-tpa-me-uk) wrote :

Indeedily :)

Cause the laptop doesn't do very much it's almost a completely stock Slack-13.0 install.

Revision history for this message
Adam Blackburn (adamblackburn) wrote :

Is fixed :)

Changed in wicd:
status: Confirmed → Fix Committed
assignee: nobody → Adam Blackburn (adamblackburn)
Changed in wicd:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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