Ntpd

From TheBeard Science Project Wiki
Jump to: navigation, search
packages:
	ntp

daemons:
	ntpd

ports:
	udp 123

other:
	NTP - Network Time Protocol. hierarchical structure of sources called strata.
		stratum 0 - atomic or gps clocks
		stratum 1 - servers obtain time from stratum 0
		stratum 2 - clients/servers obtain time from stratum 1, etc.

	supports up to 256 strata. lower strata not necessarily more reliable

configs:
	/etc/ntp.conf - config file contains lines specifying servers to get time from.
		server <domain-name>
		restrict <addr> netmask <mask> nomodify notrap - allows another host to query your system for time information

commands:
	hwclock - command used to work with bios system clock
	ntpq -p - shows the servers the system is synchronized with
	ntpdate -u <domain-name> - corrects the system date/time. must stop ntpd first. ntpdate may need to be run several times