From owner-freebsd-stable@FreeBSD.ORG Wed Mar 2 23:11:24 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D5AB16A4CE; Wed, 2 Mar 2005 23:11:24 +0000 (GMT) Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64DAF43D1D; Wed, 2 Mar 2005 23:11:24 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id IBA74465; Wed, 02 Mar 2005 15:11:24 -0800 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id D14555D07; Wed, 2 Mar 2005 15:11:23 -0800 (PST) To: Colin Percival In-reply-to: Your message of "Wed, 02 Mar 2005 17:15:18 GMT." <4225F4A6.8010200@freebsd.org> Date: Wed, 02 Mar 2005 15:11:23 -0800 From: "Kevin Oberman" Message-Id: <20050302231123.D14555D07@ptavv.es.net> cc: freebsd-stable@freebsd.org Subject: Re: 2 ntpd (5.3-STABLE-SNAP001) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 23:11:24 -0000 > Date: Wed, 02 Mar 2005 17:15:18 +0000 > From: Colin Percival > Sender: owner-freebsd-stable@freebsd.org > > Thomas Krause wrote: > > when starting ntpd at boot time, I've 2 ntpd's running: > > [...] > > Any idea why? I' running 5.3-STABLE-SNAP001. > > 1. You have some host names in ntp.conf which need to be resolved, and > 2. At the time ntpd starts, the resolver isn't running. > > For some reason, ntpd makes one attempt to look up names in DNS and then > goes into an infinite loop. Good idea. Yes, the DNS resolution in ntpd is really, really stupid. I always specify addresses in ntp.conf for this reason and the fact that it there are multiple addresses only the first returned will be tried. It never fails over if that one is dead. (And, should an IPv6 address be available on a system that does not have IPv6 connectivity...). -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634