Bug 824053 - dhclient-script should honor PEERDNS on quit
dhclient-script should honor PEERDNS on quit
Product: Fedora
Classification: Fedora
Component: dhcp (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Jiri Popelka
Fedora Extras Quality Assurance
Depends On:
Blocks: 824622
  Show dependency treegraph
Reported: 2012-05-22 12:13 EDT by Fabian Deutsch
Modified: 2012-05-23 16:39 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 824622 (view as bug list)
Last Closed: 2012-05-23 11:24:57 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Fabian Deutsch 2012-05-22 12:13:47 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.

How reproducible:

Steps to Reproduce:
See bug #822930
Actual results:
/etc/resolv.conf is empty (or contains previous data)

Expected results:
/etc/resolv.conf is not touched

Additional info:
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)
Comment 1 Jiri Popelka 2012-05-23 11:24:57 EDT
(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.

Note You need to log in before you can comment on or make changes to this bug.