Red Hat Bugzilla – Bug 824053
dhclient-script should honor PEERDNS on quit
Last modified: 2012-05-23 16:39:24 EDT
Description of problem:
If /etc/resolv.conf is changed while dhclient is running (with PEERDNS=yes), /etc/resolv.conf get's overwritten even if PEERDNS was set to "no" befor it was shutdown.
Steps to Reproduce:
See bug #822930
/etc/resolv.conf is empty (or contains previous data)
/etc/resolv.conf is not touched
This is just a problem if dhclient started with PEERDNS=yes and quits with PEERDNS=no (so the user expects dhclient no to touch resolv.conf)
(In reply to bug #822930, comment #7)
> The network is configured using DHCP, dhclient creates a copy of the
> original (a) /etc/resolv.conf in e.g. (b)
> /var/lib/dhclient/resolv.conf.predhclient.breth0 .
> When dhclient is shut down, it overwrites /etc/resolv.conf with (b), thus,
> any changes that happened during the lifetime of dhclient to
> /etc/resolv.conf are lost.
I already removed this /etc/resolv.conf backup&restore part of dhclient-script in F-17:
I'm closing as fixed in rawhide. Feel free to reopen if you need to have this fixed in F-16.