setting ntp-servers for ntpdate via dhcp

Jonathan Horne jhorne at dfwlp.com
Sun Jul 2 21:30:48 UTC 2006


On Sunday 02 July 2006 15:49, Erik Nørgaard wrote:
> Hi:
>
> There is a dhcp-option, ntp-servers, to set which ntp-server to use. It
> would be quite useful with ntpdate. Does anyone have a patch to ntpdate
> startup script or other hack that use this option? - just before I start
> hacking myself...
>
> Thanks, Erik

my ntp options in /etc/rc.conf look like this:


ntpdate_enable="YES"
ntpdate_hosts="us.pool.ntp.org"
ntpd_enable="YES"

when my system boots, ntpdate forces the time to syncronize (no matter how far 
off it is), and then ntp takes over from there.

hth,
jonathan


More information about the freebsd-questions mailing list