| From | Sent On | Attachments |
|---|---|---|
| Bob Webb | Apr 10, 1998 11:50 am | |
| pa...@phoenix.volant.org | Apr 10, 1998 12:33 pm | |
| Thomas Dean | Apr 10, 1998 1:36 pm |
| Subject: | Re: NIST Time Utility | |
|---|---|---|
| From: | pa...@phoenix.volant.org (pa...@phoenix.volant.org) | |
| Date: | Apr 10, 1998 12:33:38 pm | |
| List: | org.freebsd.freebsd-questions | |
Does FreeBSD have a utility written for setting the internal clock to NIST time using TCP/UDP over the Internet ?
I did a search and came up empty. Any input would be appreciated.
I suspect that what you are looking for is NTP - the Network Time Protocol. FreeBSD supports both xntpd for continuous synchronization and ntpdate for one-time sync. For more information about NTP, see http://www.eecis.udel.edu/~ntp
If you have the hostname and/or IP address of an open NTP server, you can set the time by running 'ntpdate <hostname>' as root. (An open server is one that accepts connections from any host instead of a limited set.)
If you want to keep the clock in sync automatically, you can either run ntpdate automatically in cron, or enable xntpd. Enabling xntpd is a little more work, since you must find a nearby open NTP server, or a closed server that will accept you as a new lower-stratum connection, and properly configure the /etc/ntpd.conf file. For a list of stratum 1 & 2 servers see: http://www.eecis.udel.edu/~mills/ntp/servers.html
In either case, you should un-comment the appropriate lines in /etc/rc.conf. (Look for 'ntp'.) If you enable ntpdate in rc.conf, it will sync the date when the system boots. If you enable xntpd, it will keep it in sync. NOTE that you probably do -not- want to enable timed if you are using ntpd.
-Pat
To Unsubscribe: send mail to majo...@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message





