[Unbound-users] unbound as local resolver on systems without reliable date/time
Stuart Henderson
stu at spacehopper.org
Mon Aug 11 22:35:44 UTC 2014
On 2014-08-10, Floris Bos <bos at je-eigen-domein.nl> wrote:
> Hi,
>
> I was wondering what the recommended way is to run unbound as a local
> resolver on systems where the date and time may not be correct on startup.
> E.g. on an embedded device like the Raspberry Pi that has no RTC.
>
> Should a startup script be used that:
>
> 1) start unbound first with a configuration file that has
> "val-override-date: -1" set
> 2) attempt to query and set time with ntpdate
> 3) if time was set successfully, kill unbound, restart with normal
> configuration file.
>
> Or is there a cleaner way?
How about just using an IP address for the NTP server? If you don't have
your own, there are a number of public access servers on fixed long-term
addresses. Seems simpler...
More information about the Unbound-users
mailing list