NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Using NTP





Am 23.11.24 um 02:38 schrieb Steve Rikli:
Your rc.conf settings look OK; this error from 'ntpdate':

   > Exiting, name server cannot be used: Temporary failure in name
   > resolution (2)/etc/rc.d/ntpdate exited with code 1

is most likely telling you that "2.netbsd.pool.ntp.org" is unable to be
resolved. Often this is a DNS config issue, sometimes a problem with
your system's network config, or possibly the local network itself (e.g.
if your gateway is off-the-air or something similar).

I was seeing the same on a Raspberry Pi with NetBSD recently. This happens because dhcpcd goes into the background while waiting for an IP address, so booting can continue. If the DHCP process is not done by the time ntpdate or ntpd start running, you will get this message.

I solved it, by adding this line to rc.conf:

dhcpcd_flags="-w"

This will make dhcpcd block until it has an IP address assigned. Note that this means the boot will take a long time when there is no network for whatever reason.

--
Benny


Home | Main Index | Thread Index | Old Index