From owner-freebsd-current@FreeBSD.ORG Mon Jan 28 09:10:07 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D068A16A46E for ; Mon, 28 Jan 2008 09:10:07 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 58D7C13C467 for ; Mon, 28 Jan 2008 09:10:06 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1JJQ0B-0003wH-0S for freebsd-current@freebsd.org; Mon, 28 Jan 2008 09:10:03 +0000 Received: from cairn.ints.net ([194.44.58.121]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Jan 2008 09:10:03 +0000 Received: from c.kworr by cairn.ints.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Jan 2008 09:10:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Volodymyr Kostyrko Date: Mon, 28 Jan 2008 11:09:52 +0200 Lines: 84 Message-ID: References: <86d4rn1kln.fsf@ds4.des.no> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cairn.ints.net User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.8.1.11) Gecko/20080123 SeaMonkey/1.1.7 In-Reply-To: <86d4rn1kln.fsf@ds4.des.no> Sender: news Subject: Re: resolver change? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2008 09:10:07 -0000 Dag-Erling Smørgrav пишет: > Did something change in our resolver / getaddrinfo() recently? Check > this out: > > des@soe ~% cat /etc/ntp.conf > server europe.pool.ntp.org iburst > server europe.pool.ntp.org iburst > server europe.pool.ntp.org iburst > server europe.pool.ntp.org iburst > server europe.pool.ntp.org iburst > server europe.pool.ntp.org iburst > des@soe ~% ntpq -pn > remote refid st t when poll reach delay offset jitter > ============================================================================== > 81.169.180.26 .INIT. 16 u - 512 0 0.000 0.000 4000..00 > 81.169.180.26 .INIT. 16 u - 512 0 0.000 0.000 4000..00 > 81.169.180.26 .INIT. 16 u - 512 0 0.000 0.000 4000..00 > 81.169.180.26 .INIT. 16 u - 512 0 0.000 0.000 4000..00 > 81.169.180.26 .INIT. 16 u - 512 0 0.000 0.000 4000..00 > *81.169.180.26 192.53.103.104 2 u 2 64 77 63.218 -19.045 3.331 > > europe.pool.ntp.org returns a different address every time you query it, > and this used to work correctly. I don't know when it changed; it > worked fine before I last rebooted my NTP server five days ago, but its > userland is from December 16. > > It is *not* a name server issue: > > des@soe ~% host europe.pool.ntp.org > europe.pool.ntp.org has address 81.169.180.26 > europe.pool.ntp.org has address 77.66.32.156 > europe.pool.ntp.org has address 217.8.241.75 > europe.pool.ntp.org has address 130.226.232.145 > europe.pool.ntp.org has address 87.32.0.19 > des@soe ~% host europe.pool.ntp.org > europe.pool.ntp.org has address 87.32.0.19 > europe.pool.ntp.org has address 81.169.180.26 > europe.pool.ntp.org has address 77.66.32.156 > europe.pool.ntp.org has address 217.8.241.75 > europe.pool.ntp.org has address 130.226.232.145 > > Somehow, ntpd (or libc) is caching the result of the lookup where it > previously didn't. > > But this doesn't make sense, since neither ntpd nor libc nor > /etc/{nsswitch,ntp,resolv}.conf have changed since it last worked. > > For now, I'm going to work around it by explicitly using > [1-3].europe.pool.ntp.org, but I'd really like to know what's going > on... > > DES Well, tried that and found that if you rapidly issue a host command the results still the same (for 1 or 2 secs). > host 3.europe.pool.ntp.org 3.europe.pool.ntp.org has address 212.13.207.101 3.europe.pool.ntp.org has address 87.229.78.162 3.europe.pool.ntp.org has address 193.228.143.13 3.europe.pool.ntp.org has address 192.108.114.23 3.europe.pool.ntp.org has address 194.238.48.3 > host 3.europe.pool.ntp.org 3.europe.pool.ntp.org has address 212.13.207.101 3.europe.pool.ntp.org has address 87.229.78.162 3.europe.pool.ntp.org has address 193.228.143.13 3.europe.pool.ntp.org has address 192.108.114.23 3.europe.pool.ntp.org has address 194.238.48.3 > host 3.europe.pool.ntp.org 3.europe.pool.ntp.org has address 87.229.78.162 3.europe.pool.ntp.org has address 193.228.143.13 3.europe.pool.ntp.org has address 192.108.114.23 3.europe.pool.ntp.org has address 194.238.48.3 3.europe.pool.ntp.org has address 212.13.207.101 Try using this config: server 0.europe.pool.ntp.org iburst server 1.europe.pool.ntp.org iburst server 2.europe.pool.ntp.org iburst server 3.europe.pool.ntp.org iburst -- Sphinx of black quartz judge my vow.