NTPD.CONF(5) | MidnightBSD File Formats Manual | NTPD.CONF(5) |
ntpd.conf
—
Network Time Protocol daemon configuration file
This manual page describes the format of the ntpd(8) configuration file.
The optional weight
keyword permits finer
control over the relative importance of time sources. Weights are specified
in the range 1 to 10; if no weight is given, the default is 1. A server with
a weight of 5, for example, will have five times more influence on time
offset calculation than a server with a weight of 1.
ntpd.conf
has the following format:
Empty lines and lines beginning with the ‘#’ character are ignored.
Keywords may be specified multiple times within the configuration file. They are as follows:
listen
on
addresslisten on *
or
listen on 127.0.0.1 listen on ::1
server
address [weight
weight-value]server 10.0.0.2 weight 5 server ntp.example.org weight 1
To provide redundancy, it is good practice to configure multiple servers. In general, best accuracy is obtained by using servers that have a low network latency.
servers
address [weight
weight-value]server
, specify the IP address or hostname
of an NTP server to synchronize to. If it appears multiple times,
ntpd(8) will try to
synchronize to all of the servers specified. Should the hostname resolve
to multiple IP addresses,
ntpd(8) will try to
synchronize to all of them. For example:
servers pool.ntp.org
The ntpd.conf
file format first appeared
in OpenBSD 3.6.
June 9, 2008 | midnightbsd-3.1 |