From owner-freebsd-stable@FreeBSD.ORG Thu Mar 30 17:48:13 2006 Return-Path: X-Original-To: stable@freebsd.org 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 157A116A420 for ; Thu, 30 Mar 2006 17:48:13 +0000 (UTC) (envelope-from oberman@es.net) Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id D092D43D5A for ; Thu, 30 Mar 2006 17:48:05 +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; Thu, 30 Mar 2006 09:48:00 -0800 Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id E04C845083; Thu, 30 Mar 2006 09:47:59 -0800 (PST) To: gareth In-reply-to: Your message of "Thu, 30 Mar 2006 17:59:28 +0200." <20060330155928.GA5245@lordcow.org> Date: Thu, 30 Mar 2006 09:47:59 -0800 From: "Kevin Oberman" Message-Id: <20060330174759.E04C845083@ptavv.es.net> Cc: stable@freebsd.org Subject: Re: ntpdate 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: Thu, 30 Mar 2006 17:48:13 -0000 > Date: Thu, 30 Mar 2006 17:59:28 +0200 > From: gareth > Sender: owner-freebsd-stable@freebsd.org > > On Thu 2006-03-30 (10:35), Michael Proto wrote: > > cd /usr/src/usr.sbin/ntp > > make depend > > make > > make install > > yay, ok that works ta (going into /usr/src/usr.sbin/ntp > as opposed to /usr/src/usr.sbin/ntp/ntpdate) and the > binary gets rebuilt. but, same problem :/ > > # ntpdate nom.uct.ac.za > Looking for host nom.uct.ac.za and service ntp > host found : 2001:4200:300:100:20e:cff:fe5c:f5c4 > 30 Mar 17:58:16 ntpdate[35787]: cannot find family compatible socket to send ntp packet You are trying to send an ntp packet to 2001:4200:300:100:20e:cff:fe5c:f5c4, but it looks loke that system is not opening an IPv6 port for ntp, so this fails. It looks like this system has an IPv6 address in DNS, but is not actually running IPv6. I can't ping it and a trace makes it to S.A., but dies before reaching the host. ntpd is VERY stupid in handling this. It does a DNS query on all servers in the ntp.conf file ONCE at startup and saves the first response it gets. Even though there are other, usable addresses, it sticks with the first one resolved. You can fix this by specifying the IPv4 address (137.158.128.11) in ntp.conf. I have been told that queries may be limited to IPv4 in ntp.conf, but the man page does not indicate this and I have not had time to dig into the sources. -- 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