Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 178045 - dhcleint-script overwrites custom resolv.conf
dhcleint-script overwrites custom resolv.conf
Product: Fedora
Classification: Fedora
Component: dhcp (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jason Vas Dias
Depends On:
  Show dependency treegraph
Reported: 2006-01-17 11:14 EST by Jeff Armstrong
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-01-17 11:29:59 EST
Type: ---
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 Jeff Armstrong 2006-01-17 11:14:51 EST
Description of problem: dhclient-script overwrites custom resolv.conf file. 
Server uses dhcp external interface and static internal interfaces.  We use
internal dns.  dhclient-script overwrites search and domain with external

Version-Release number of selected component (if applicable): FC4 and higher

How reproducible: restart network when address is obtained it will overwrite file

Additional info:  It would be nice if there was a settings file or something
besides editing out the dhclient-script. Or have the rpm save the file as rpmnew
instead of overwriting changes.  I know it's minor.  But i'm guessing there is
more than just me with this problem.
Comment 1 Jason Vas Dias 2006-01-17 11:29:59 EST
There are many ways to customize the dhclient-script's modification of 

o  Disable resolv.conf modification entirely - set
   in /etc/sysconfig/network, or /etc/sysconfig/network-scripts/ifcfg-${IF}


o  Change the domain-name or domain-name-servers dhcp options in 
   /etc/dhclient.conf (see man dhclient.conf(5)) with the 'prepend',
   'append', or 'supersede' directives - e.g.:
     'supersede domain-name-servers W.X.Y.Z;'
   will replace any nameservers received from dhcp with W.X.Y.Z .
   If dhclient-${interface}.conf exists for the $interface being configured,
   it will override any existing global dhclient.conf.


o  Create an /etc/dhclient-up-hooks script, that will be sourced before
   dhclient writes resolv.conf, so you can change dhcp option settings 
   before they are written:
   See 'man dhclient-script' for details on the dhclient hooks scripts.

In short, dhclient-script is NOT a %config file and should never need to
be modified by end users, and there are many methods provided to customize its
operation, so this is 'NOTABUG'. If you still have problems, let me know .
Thank you!

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