On Fri, Nov 22, 2024 at 07:53:48PM -0500, Todd Gruhn wrote:
> From /var/run/rc.log:
> 
> [running /etc/rc.d/ntpdate]
> Setting date via ntp.
> Exiting, name server cannot be used: Temporary failure in name
> resolution (2)/etc/rc.d/ntpdate exited with code 1
> 
> From /etc/rc.conf:
> 
> ntpd=YES             ## 'ntp' == Network TIME Protocal
> ntpdate=YES      ntpdate_hosts="2.netbsd.pool.ntp.org"
> 
> 
> What is wrong with these lines in rc.conf ??

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

Check your system's network config, and /etc/resolv.conf; make sure you
can ping the NTP server(s) and other things on the net, try a manual DNS
lookup for your desired NTP server(s), etc.

Cheers,
sr.

Reply via email to