Bug 99334 - dhclient-script overwrites /etc/ntp.conf
Summary: dhclient-script overwrites /etc/ntp.conf
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: dhcp
Version: 8.0
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-07-17 19:37 UTC by Paul Visscher
Modified: 2007-04-18 16:55 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-07-29 19:24:42 UTC
Embargoed:


Attachments (Terms of Use)

Description Paul Visscher 2003-07-17 19:37:33 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030516
Mozilla Firebird/0.6

Description of problem:
When dhclient is run, /sbin/dhclient-script overwrites any changes made to
/etc/ntp.conf.

Version-Release number of selected component (if applicable):
dhclient-3.0pl1-9

How reproducible:
Always

Steps to Reproduce:
1. Make changes to /etc/ntp.conf
2. run dhclient
3. 
    

Actual Results:  ntp.conf has been overwritten

Expected Results:  ntp.conf should have remained unchanged.

Additional info:

Lines 149-156 of /sbin/dhclient-script overwrite /etc/ntp.conf

Comment 1 Daniel Walsh 2003-07-29 19:24:42 UTC
If you set 
PEERDNS=no
in your /etc/sysconfig/network-scripts/ifcfg-eth0 
script using the latest dhclient from rawhide this problem will go away.

Comment 2 Ken Brooks 2006-04-06 15:49:05 UTC
Looking in the script, it appears to be
PEERNTP=no
not PEERDNS=no

In a simple test, this seemed to work.


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