From owner-freebsd-hackers Sat Sep 27 01:22:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA09265 for hackers-outgoing; Sat, 27 Sep 1997 01:22:21 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id BAA09259 for ; Sat, 27 Sep 1997 01:22:16 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id KAA17797 for freebsd-hackers@freefall.FreeBSD.org; Sat, 27 Sep 1997 10:22:14 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.7/8.8.5) id KAA15965; Sat, 27 Sep 1997 10:02:28 +0200 (MET DST) Message-ID: <19970927100228.BQ43995@uriah.heep.sax.de> Date: Sat, 27 Sep 1997 10:02:28 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@freefall.FreeBSD.org Subject: Re: r-cmds and DNS and /etc/host.conf References: <199709251058.GAA08060@lakes.dignus.com> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199709251058.GAA08060@lakes.dignus.com>; from Thomas David Rivers on Sep 25, 1997 06:58:10 -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Thomas David Rivers wrote: > I originally reported this problem in version 2.1.5 of FreeBSD, on > Aug. 16th, 1996. The subject of that message was > > "Nameserver and 'rlogin' in 2.1.5." > > it should be in the freebsd-hackers mail archives. But, at that time > I thought it was a totally different problem and let it languish. > Since it didn't get resolved; particularly when my network situation > changed, I brought it back up... I still blame your setup. As well as Sean, i can't reproduce the problem in a way where i could not resolve it using /etc/hosts. One particular thing i've just noticed (by tracing the nameserver's requests, as mentioned in the other mail) was... but first the setup, so you can match it your situation: uncle.heep.sax.de uriah.heep.sax.de | | | +--------------------+ +--- . . . dialup link to Ethernet 192.168.0 Internet rlogin from uriah to uncle worked well, and generated no DNS queries. rlogin back from uncle to uriah caused one query from uriah for `localhost.heep.sax.de', which was not resolved by placing this name in /etc/hosts on uriah. I then found that i had to replace the line 127.1 localhost localhost.heep.sax.de by 127.0.0.1 localhost localhost.heep.sax.de and *bingo* it worked. Now, we've been discussing this before... (Ok, now fix the broken setup again to use DNS for everything. Heck, why should i rely on outdated /etc/hosts files? :-) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)