From owner-freebsd-stable Wed Apr 4 9:55:27 2001 Delivered-To: freebsd-stable@freebsd.org Received: from gndrsh.dnsmgr.net (GndRsh.dnsmgr.net [198.145.92.4]) by hub.freebsd.org (Postfix) with ESMTP id 8E98237B725 for ; Wed, 4 Apr 2001 09:55:22 -0700 (PDT) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.9.3/8.9.3) id JAA16666; Wed, 4 Apr 2001 09:55:19 -0700 (PDT) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <200104041655.JAA16666@gndrsh.dnsmgr.net> Subject: Re: Strange localhost NS look attempts In-Reply-To: <200104041635.MAA00043@world.std.com> from Kenneth W Cochran at "Apr 4, 2001 12:35:22 pm" To: kwc@world.std.com (Kenneth W Cochran) Date: Wed, 4 Apr 2001 09:55:19 -0700 (PDT) Cc: freebsd-stable@freebsd.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >From owner-freebsd-stable@FreeBSD.ORG Wed Apr 4 11:46:09 2001 > >From: "Rodney W. Grimes" > >Subject: Re: Strange localhost NS look attempts > >To: at@rominet.net (Alain Thivillon) > >Date: Wed, 4 Apr 2001 08:45:12 -0700 (PDT) > >Cc: freebsd-stable@FreeBSD.ORG > > > >[Charset iso-8859-1 unsupported, filtering to ASCII...] > >> Kenneth W Cochran _crivait (wrote) : > >> > >> > Agreed, I think it has more to do with the nameserver. But > >> > maybe Yet Another Netscape Problem? Any idea(s) as to a fix? > >> > >> This is because answer of DNS server comes back after the resolver > >> timeout : query socket is closed and kernel log a connection attempt. > > > >Does anyone see a huge descrepancy in these two contants: > >named/ns_defs.h:#define RETRY_TIMEOUT 45 > >br1.reply.net:root {176}# grep -i timeout /usr/include/resolv.h > >#define RES_TIMEOUT 5 /* min. seconds between retries */ > > > >Our systems log 10 of thousands of these UDP port 53 vain connections, > >and now I see clearly why. If your not running a local named you only > > But I *do* run a local named, cache-only though. But > discounting that, shouldn't the resolver be getting that > from /etc/hosts anyway? (/etc/host.conf is "as-installed," > hosts followed by bind.) local or remote named, the situation should be the same, just the IP address of the vain UDP 53 connections will be 127.0.0.1 for a local server, and X.X.X.X for a remote server. The code works the same either way. I don't know why your talking about /etc/hosts, that shouldn't have any data in it anyway, except perhaps localhost (and you don't need that if you have your DNS setup correctly). root {194}# host localhost localhost.reply.net has address 127.0.0.1 root {196}# cat /etc/host.conf # $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $ # First try the /etc/hosts file #hosts # Now try the nameserver next. bind # If you have YP/NIS configured, uncomment the next line # nis -- Rod Grimes - KD7CAX @ CN85sl - (RWG25) rgrimes@gndrsh.dnsmgr.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message