NTPD.CONF - Online Linux Manual PageSection : 5
Updated : August 10 2017
NAME ntpd.conf —Network Time Protocol daemon configuration file
DESCRIPTIONThis manual page describes the format of the ntpd(8) configuration file. 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. The basic configuration options are as follows: listen on address [rtable table-id] ntpd(8) has the ability to sync the local clock to remote NTP servers and, if this directive is specified, can act as NTP server itself, redistributing the local clock. Specify a local IP address or a hostname the ntpd(8) daemon should listen on to enable remote clients synchronization. If it appears multiple times, ntpd(8) will listen on each given address. If ‛*’ is given as an address, ntpd(8) will listen on all local addresses using the specified routing table. ntpd(8) does not listen on any address by default. The optional rtable keyword will specify which routing table to listen on, if the operating system supports rdomains. By default ntpd(8) will listen using the current routing table. For example: listen on *or listen on 127.0.0.1
listen on ::1
listen on 127.0.0.1 rtable 4 query from address Specify a local IP address the ntpd(8) daemon should use for outgoing queries to subsequently specified servers. For example: query from 192.0.2.1
query from 2001:db8::1 sensor device [correction microseconds] [weight weight-value] [refid string] [stratum stratum-value] Specify a timedelta sensor device ntpd(8) should use, if the operating system supports sensors. The sensor can be specified multiple times: ntpd(8) will use each given sensor that actually exists. Non-existent sensors are ignored. If ‛*’ is given as device name, ntpd(8) will use all timedelta sensors it finds. ntpd(8) does not use any timedelta sensor by default. For example: sensor *
sensor nmea0An optional correction in microseconds can be given to compensate for the sensor's offset. The maximum correction is 127 seconds. For example, if a DCF77 receiver is lagging 70ms behind actual time: sensor udcf0 correction 70000The optional weight keyword permits finer control over the relative importance of time sources (servers or sensor devices). 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. An optional reference ID string - up to 4 ASCII characters - can be given to publish the sensor type to clients. RFC 2030 suggests some common reference identifiers, but new identifiers "can be contrived as appropriate." If an ID string is not given, ntpd(8) will use a generic reference ID. For example: sensor nmea0 refid GPSA stratum value other than the default of 1 can be assigned using the stratum keyword. server address [weight weight-value] Specify the IP address or the 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. If a hostname resolves to multiple IPv4 and/or IPv6 addresses, ntpd(8) uses the first address. If it does not get a reply, ntpd(8) retries with the next address and continues to do so until a working address is found. For example: server 10.0.0.2 weight 5
server ntp.example.org weight 1To 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] As with 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
servers pool.ntp.org weight 5
CONSTRAINTSntpd(8) can be configured to query the ‛Date’ from trusted HTTPS servers via TLS. This time information is not used for precision but acts as an authenticated constraint, thereby reducing the impact of unauthenticated NTP man-in-the-middle attacks. Received NTP packets with time information falling outside of a range near the constraint will be discarded and such NTP servers will be marked as invalid. Support for constraints is only available if ntpd(8) has been linked with libtls from LibreSSL. Configuring a constraint without libtls causes ntpd(8) to log a warning message on startup. constraint from url Specify the URL, IP address or the hostname of an HTTPS server to provide a constraint. If constraint from is used more than once, ntpd(8) will calculate a median constraint from all the servers specified. server ntp.example.org
constraint from www.example.com constraints from url As with constraint from, specify the URL, IP address or the hostname of an HTTPS server to provide a constraint. Should the hostname resolve to multiple IP addresses, ntpd(8) will calculate a median constraint from all of them. For example: servers pool.ntp.org
constraints from "https://www.google.com/"
FILES /etc/ntpd.conf default ntpd(8) configuration file
SEE ALSOntpctl(8), ntpd(8), sysctl(8)
HISTORYThe ntpd.conf file format first appeared in OpenBSD 3.6. 0
Johanes Gumabo
Data Size : 16,625 byte
man-ntpd.conf.5Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 6 / 173,898
Visitor ID : :
Visitor IP : 18.220.110.45 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.