Date: Wed, 24 Sep 1997 03:08:30 -0700 (PDT) From: Dmitry Kohmanyuk <dk@dog.farm.org> To: freebsd-hackers@freebsd.org Subject: Re: r-cmds and DNS and /etc/host.conf Message-ID: <199709241008.DAA06292@dog.farm.org>
next in thread | raw e-mail | index | archive | help
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 <terry@lambert.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709241008.DAA06292>