From owner-freebsd-hackers Wed Sep 24 03:09:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA20249 for hackers-outgoing; Wed, 24 Sep 1997 03:09:05 -0700 (PDT) Received: from minor.stranger.com (stranger.vip.best.com [204.156.129.250]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA20239 for ; Wed, 24 Sep 1997 03:08:56 -0700 (PDT) Received: from dog.farm.org (dog.farm.org [207.111.140.47]) by minor.stranger.com (8.8.5/8.6.12) with ESMTP id DAA18662 for ; Wed, 24 Sep 1997 03:14:46 -0700 (PDT) Received: (from dk@localhost) by dog.farm.org (8.7.5/dk#3) id DAA06292 for freebsd-hackers@freebsd.org; Wed, 24 Sep 1997 03:08:30 -0700 (PDT) Date: Wed, 24 Sep 1997 03:08:30 -0700 (PDT) From: Dmitry Kohmanyuk Message-Id: <199709241008.DAA06292@dog.farm.org> To: freebsd-hackers@freebsd.org Subject: Re: r-cmds and DNS and /etc/host.conf Newsgroups: cs-monolit.gated.lists.freebsd.hackers Organization: FARM Computing Association Reply-To: dk+@ua.net X-Newsreader: TIN [version 1.2 PL2] Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article <199709240552.WAA02858@dog.farm.org> you wrote: > In article <34287531.FB18FE1F@ptway.com> you wrote: > > > > In article > > > <199709222122.RAA02406.kithrup.freebsd.hackers@lakes.dignus.com> you > > > write: > > > > > What's strange is that things on the gateway machine seem to > > > access > > > > >the local network (presumably using /etc/hosts) just fine. It's > > > > >only rlogin's to the gateway machine from the internal network > > > > >that are causing the problem... > I have just tested this on two machines, client running 2.2-old and > server running 2.2.2-R. The bug is there, in rlogind or libraries it uses. > # tcpdump -l -i lo0 -s 512 tcpdump: listening on lo0 > 22:53:50.569483 localhost.1319 > localhost.domain: 31153+ A? dog.stranger.com. (34) > 22:53:50.570916 localhost.domain > localhost.1319: 31153 NXDomain* 0/1/0 (87) > 22:53:50.572942 localhost.1320 > localhost.domain: 31154+ A? dog. (21) > 22:53:50.573687 localhost.domain > localhost.1320: 31154 NXDomain* 0/0/0 (21) > so, server tried to resolve names `dog.stranger.com.' - note the trailing > dot - and then `dog.' (dog is client machine; stranger.com is domain). > None of those are in hosts, of course. the lookups occur only if .rhosts is present. So, it's in /usr/src/lib/libc/net/rcmd.c:iruserok() or deeper (_not_ ruserok() - this one tests by IP address). -- >From the DOS/Windows95 perspective, memory management is one of the strong points of Nintendo cartridges. --Terry Lambert