From owner-freebsd-hackers Sun Sep 14 19:12:29 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA19856 for hackers-outgoing; Sun, 14 Sep 1997 19:12:29 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA19848 for ; Sun, 14 Sep 1997 19:12:24 -0700 (PDT) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id LAA20812; Mon, 15 Sep 1997 11:42:14 +0930 (CST) Message-ID: <19970915114213.54969@lemis.com> Date: Mon, 15 Sep 1997 11:42:13 +0930 From: Greg Lehey To: Brian Somers Cc: Terry Lambert , joerg_wunsch@uriah.heep.sax.de, freebsd-hackers@FreeBSD.ORG Subject: Why not DNS (was: nfs startup - perhaps it is a problem) References: <199709142148.OAA22603@usr09.primenet.com> <199709150141.CAA26286@awfulhak.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199709150141.CAA26286@awfulhak.demon.co.uk>; from Brian Somers on Mon, Sep 15, 1997 at 02:41:19AM +0100 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, Sep 15, 1997 at 02:41:19AM +0100, Brian Somers wrote: >>>>> Who told you this? rlogind does a plain gethostbyaddr(), ... >>> >>>> iijppp told me this when I tried to rlogin to myself (actually, rsh) >>>> to start an xterm under fvwm, and the rlogind did a getpeername(), >>>> then did a gethostbyaddr() that, for no good reason, sent out DNS >>>> packets, even though "hosts" appeared before "bin" in /etc/host.conf. >>>> >>>> So you could say that it's Empirically true, regardless of theory >>>> and regardless of what it's supposedly doing. >>> >>> This would mean the resolver were broken. Did you tcpdump it? >> >> I put the iijpp tcp/ip logging flag on, and watched the port 53 >> requests go across for an rlogin into myself. Given that it was >> a completely local connection that should have been handled over the >> loopback interface (I did use my host name, and not "localhost", >> however), it issuing reverse lookup requests for my machine instead >> of getting the data out of /etc/hosts is an error. >> >> This is compounded by the fact that I am using a non-routable >> network, so there's no way in hell a non-local resolver would >> be able to help me anyway. 8-(. > > Does it help if you put entries with trailing dots in /etc/hosts ? > > 10.0.0.1 my.machine my > 10.0.0.1 my.machine. my. No. /etc/hosts doesn't understand trailing dots. I haven't been following this thread too closely, but I still claim that /etc/hosts is just plain obsolete. If anybody can give me any reasons for using /etc/hosts, I'm sure I can refute them. Fire away! Greg