From owner-freebsd-stable@FreeBSD.ORG Tue Oct 25 09:34:21 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4CE3106566B for ; Tue, 25 Oct 2011 09:34:21 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id A2D608FC14 for ; Tue, 25 Oct 2011 09:34:21 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 3D30E28428; Tue, 25 Oct 2011 11:34:20 +0200 (CEST) Received: from [192.168.1.2] (ip-86-49-61-235.net.upcbroadband.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 65E6828423; Tue, 25 Oct 2011 11:34:19 +0200 (CEST) Message-ID: <4EA6829A.9040902@quip.cz> Date: Tue, 25 Oct 2011 11:34:18 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: Jeremy Chadwick References: <4EA5EBB5.3090101@quip.cz> <20111024232750.GA74032@icarus.home.lan> In-Reply-To: <20111024232750.GA74032@icarus.home.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: ntpd couldn't resolve host name on system boot X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2011 09:34:22 -0000 Jeremy Chadwick wrote: > On Tue, Oct 25, 2011 at 12:50:29AM +0200, Miroslav Lachman wrote: >> I have a problem with ntpd on many of our servers running >> 8.2-RELEASE or newer. Some of them are newly installed, most of them >> are 7.x upgraded to 8.2 or 8-STABLE amd64 with GENERIC. >> >> Ntpd can't resolve host names on boot. This error did not existed on 7.x [...] >> I know there is rc.d/netwait in 8-STABLE, but it is not available on >> 8.2-RELEASE and I think that there is some regression as this error >> was not there in the time of FreeBSD 7.x. > > The problem is that the networking layer is not TRULY available by the > time ntpd starts. This does have to do with NIC drivers, but the same > behaviour can be seen on all NICs, including excellent ones like em(4). > > You can use the rc.conf netwait_* variables to solve this problem. I'm > the author of the script that got committed so that's how I know. :-) > An example: > > netwait_enable="yes" > netwait_ip="4.2.2.1 4.2.2.2" > netwait_if="em0" > > If you need help setting this up, let me know. Yes, I know you are the author and I tested one of the earlier version floating around a mailing list, and I already have it on some 8-STABLE machines where it is included in base /etc/rc.d - thank you for your work! My main concern is that I never needed it on previous FreeBSD versions. I am using ntpdate / ntpd from FreeBSD 4.x days and it always worked fine. So there is some "bad change" on FreeBSD 8.x. Miroslav Lachman