Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 86239 - /sbin/dhclient-script creates insufficient ntp.conf file.
/sbin/dhclient-script creates insufficient ntp.conf file.
Product: Red Hat Linux
Classification: Retired
Component: dhcp (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Daniel Walsh
Depends On:
  Show dependency treegraph
Reported: 2003-03-17 18:46 EST by John Guthrie
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-03-24 10:48:42 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
proposed patch for /sbin/dhclient-script (390 bytes, patch)
2003-03-17 18:48 EST, John Guthrie
no flags Details | Diff

  None (edit)
Description John Guthrie 2003-03-17 18:46:37 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

Description of problem:
In the script /sbin/dhclient-script that comes with the dhclient package, the
ntp.conf file that it creates is not sufficient for ntp to work correctly.  The
script puts the list of servers into the ntp.conf file, but fails to add a
restrict line for each such server.  With the
config line

restrict default ignore

that gets put in at the beginning of the ntp.conf file, this means that any info
from the servers gets ignored.  I have attached a short patch which should fix this.

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

How reproducible:

Steps to Reproduce:
1. Run the dhclient program to get an IP address for an interface.  Make certain
that the DHCP server is providing an ntp-server.  Otherwise, you won't get the
ntp.conf file.
2. Look at the resulting /etc/ntp.conf file.  You should see the following three
lines somewhere in the file:

restrict default ignore
server $ntp_server

But there will be no restrict line for each of the server lines.  This
essentially disables them.

Additional info:
Comment 1 John Guthrie 2003-03-17 18:48:51 EST
Created attachment 90633 [details]
proposed patch for /sbin/dhclient-script
Comment 2 Daniel Walsh 2003-03-24 10:48:42 EST
This fix is already available on RawHide and will be in next version of Red Hat.

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