Date: Mon, 15 Sep 1997 11:42:13 +0930 From: Greg Lehey <grog@lemis.com> To: Brian Somers <brian@awfulhak.org> Cc: Terry Lambert <tlambert@primenet.com>, joerg_wunsch@uriah.heep.sax.de, freebsd-hackers@FreeBSD.ORG Subject: Why not DNS (was: nfs startup - perhaps it is a problem) Message-ID: <19970915114213.54969@lemis.com> In-Reply-To: <199709150141.CAA26286@awfulhak.demon.co.uk>; from Brian Somers on Mon, Sep 15, 1997 at 02:41:19AM %2B0100 References: <199709142148.OAA22603@usr09.primenet.com> <199709150141.CAA26286@awfulhak.demon.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970915114213.54969>