Bug#407336: [pkg-ntp-maintainers] Bug#407336: ntp: undesirable behaviour of overwriting conf file based on dhcp unconfigurable

Tim Connors reportbug at rather.puzzling.org
Thu Jan 18 08:31:26 CET 2007


On Wed, 17 Jan 2007, Peter Eisentraut wrote:

> Tim Connors wrote:
> > ntp now takes servers from the dhcp client without asking, and
> > without being overridable.
>
> I quote from /usr/share/doc/ntp/README.Debian.gz:
>
> """
> If DHCP is used to configure the host, and the DHCP server sends
> information about NTP servers, then this information will be used
> automatically.  This is done by making a copy of /etc/ntp.conf at
> /etc/ntp.conf.dhcp, replacing the server entries with the information
> provided by the DHCP server, and restarting the NTP server.
>
> In order for this to work, the "ntp-servers" option must be mentioned
> in the "request" statement in /etc/dhcp3/dhclient.conf.  This is not
> the case in a default installation.  A complete configuration might
> look like this, for example:
>
>     request subnet-mask, broadcast-address, time-offset, routers,
>             domain-name, domain-name-servers, host-name,
>             netbios-name-servers, netbios-scope, interface-mtu,
>             ntp-servers;
>
> If you don't like using the NTP servers sent by the DHCP server, this
> is also the right place to turn off this behavior.
>                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> """

This was as default, and hence was off.  I won't be on this dhcp network
until at least Monday, and shall try it again then with some debug output.
This may well be a dhcp3 bug.  Perhaps new_ntp_servers is being receieved
and passed on even though not requested.

-- 
Tim Connors
http://site.aao.gov.au/twc




More information about the pkg-ntp-maintainers mailing list