Re: setting ntp-servers for ntpdate via dhcp

2006-07-03 Thread Erik Norgaard

Jonathan Horne wrote:

On Sunday 02 July 2006 15:49, Erik Nørgaard wrote:

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...


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.


I have that too, the point is not that ntpdate doesn't work, but that 
configuration via dhcp is not supported. And since dhcp provides the 
option, it would be quite neat to support it.


So something like this in rc.conf would be nice:

  ntpdate_enable=DHCP
  ntpdate_hosts=ntp.domain.tld

When set to DHCP the ntpdate script should parse the lease file to find 
any available ntp server to use. The hosts option should be fallback if 
the dhcp server did not provide a list of available ntp-servers.


Currently such functionality is not supported, and just before I go 
ahead and hack something up, it would be nice to know if others have 
done the effort.


Cheers, Erik


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


setting ntp-servers for ntpdate via dhcp

2006-07-02 Thread Erik Nørgaard
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
-- 
Ph: +34.666334818  web: http://www.locolomo.org
X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt
Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9


smime.p7s
Description: S/MIME Cryptographic Signature


Re: setting ntp-servers for ntpdate via dhcp

2006-07-02 Thread Jonathan Horne
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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]