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

Peter Eisentraut peter_e at gmx.net
Wed Jan 17 19:28:11 CET 2007

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,

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.

More information about the pkg-ntp-maintainers mailing list