Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Nov 2011 16:55:34 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Robert Simmons <rsimmons0@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ntpdate on boot problem
Message-ID:  <alpine.BSF.2.00.1111051653120.28513@wonkity.com>
In-Reply-To: <CA%2BQLa9CfBYRshynTPDkYDapA_M_rDr-UD6sh-JYBGfSPONBJYQ@mail.gmail.com>
References:  <CA%2BQLa9CfBYRshynTPDkYDapA_M_rDr-UD6sh-JYBGfSPONBJYQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 5 Nov 2011, Robert Simmons wrote:

> Is there a way to make sure that the interface is UP and working
> before running ntpdate at boot on a box with a static IP address?
>
> After setting ntpdate_enable="YES" in rc.conf, I get the following
> error on boot:
>
> Setting date via ntp.
> Error : hostname nor servname provided, or not known
> 5 Nov 17:11:05
> ntpdate[786]: can't find host 0.freebsd.pool.ntp.org
>
> Error : hostname nor servname provided, or not known
> 5 Nov 17:11:05
> ntpdate[786]: can't find host 1.freebsd.pool.ntp.org
>
> Error : hostname nor servname provided, or not known
> 5 Nov 17:11:05
> ntpdate[786]: can't find host 2.freebsd.pool.ntp.org
>
> 5 Nov 17:11:05
> ntpdate[786]: no servers can be used, exiting
>
> I've had this problem with machines using DHCP and the solution was to
> use SYNCDHCP rather than DHCP in rc.conf.  However, this box is using
> a static IP address.  But the problem seems to be similar.

Yes, it is.  FreeBSD 8-STABLE and 9 have /etc/rc.d/netwait just for 
this.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1111051653120.28513>