Bug 824053 - dhclient-script should honor PEERDNS on quit
Summary: dhclient-script should honor PEERDNS on quit
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dhcp
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jiri Popelka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 824622
TreeView+ depends on / blocked
 
Reported: 2012-05-22 16:13 UTC by Fabian Deutsch
Modified: 2012-05-23 20:39 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 824622 (view as bug list)
Environment:
Last Closed: 2012-05-23 15:24:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 822930 0 urgent CLOSED DNS info is removed after register to rhevm 2021-02-22 00:41:40 UTC

Internal Links: 822930

Description Fabian Deutsch 2012-05-22 16:13:47 UTC
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 15:24:57 UTC
(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.


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