From owner-freebsd-questions@FreeBSD.ORG Sat Nov 5 21:51:22 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69E9C10656EE for ; Sat, 5 Nov 2011 21:51:22 +0000 (UTC) (envelope-from rsimmons0@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2EA448FC0C for ; Sat, 5 Nov 2011 21:51:21 +0000 (UTC) Received: by ggnk3 with SMTP id k3so3146181ggn.13 for ; Sat, 05 Nov 2011 14:51:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=zsqmJzx82paL69nxUbxfXsoMFiXtb64Q++lSYqDjOFY=; b=EaIxrjFxcYss9rCieEk8DlUtXaN1U/Ne4T5ACcEhk2AjUZqfISzEojwO/ESpbmDZhr N/r7pXzWuRwig40n2cE7ZKpaWnP8odk/dsxn2gb1szxLrfFAARGkkYZKH+GNQ4QNh6Nt q1hic+0il/pkQ8HG+BDB5pei3NySruVp8x+kU= MIME-Version: 1.0 Received: by 10.101.172.35 with SMTP id z35mr4704164ano.0.1320528348693; Sat, 05 Nov 2011 14:25:48 -0700 (PDT) Received: by 10.100.143.13 with HTTP; Sat, 5 Nov 2011 14:25:48 -0700 (PDT) Date: Sat, 5 Nov 2011 17:25:48 -0400 Message-ID: From: Robert Simmons To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: ntpdate on boot problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Nov 2011 21:51:22 -0000 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. Rob