Bug 824053

Summary: dhclient-script should honor PEERDNS on quit
Product: [Fedora] Fedora Reporter: Fabian Deutsch <fdeutsch>
Component: dhcpAssignee: Jiri Popelka <jpopelka>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: jpopelka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugzilla.redhat.com/show_bug.cgi?id=822930
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 824622 (view as bug list) Environment:
Last Closed: 2012-05-23 11:24:57 EDT Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On:    
Bug Blocks: 824622    

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:
Always

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:
http://pkgs.fedoraproject.org/gitweb/?p=dhcp.git;a=commitdiff;h=1e3f54a9ec3e1610b8ad4920c6c6b0c4c80a1e22

I'm closing as fixed in rawhide. Feel free to reopen if you need to have this fixed in F-16.