From owner-freebsd-hackers Thu Sep 25 01:11:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA04447 for hackers-outgoing; Thu, 25 Sep 1997 01:11:50 -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 BAA04441 for ; Thu, 25 Sep 1997 01:11:47 -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 BAA20144; Thu, 25 Sep 1997 01:18:02 -0700 (PDT) Received: (from dk@localhost) by dog.farm.org (8.7.5/dk#3) id BAA18397; Thu, 25 Sep 1997 01:07:52 -0700 (PDT) Date: Thu, 25 Sep 1997 01:07:52 -0700 (PDT) From: Dmitry Kohmanyuk Message-Id: <199709250807.BAA18397@dog.farm.org> To: sef@Kithrup.COM (Sean Eric Fagan) Cc: 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 <199709250239.TAA06463@kithrup.com> you wrote: > In article <199709241008.DAA06292.kithrup.freebsd.hackers@dog.farm.org> you write: > >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). > Okay, I tried this here, as well: > garth: > running 2.2-GAMMA > No local nameserver > /etc/hosts has LAN hosts, and localhost, and nothing else > /etc/host.conf has "hosts" followed by "bind" > /etc/hosts.equiv has "#kithrup.com" > ~sef/.rhosts has "kithrup.com" and "kithrup" > /etc/resolv.conf has "domain kithrup.com", and my ISP as > nameservers so DNS traffic should fo to your ISP... > I started up two tcpdump's on garth (one for lo0, and one for "host garth > and not port login and not port klogin" on de0). > Then, from kithrup, I did: > rlogin -KL8 garth > No traffic from either tcpdump. the traffic should go to your nameserver - so, please run tcpdump one the interface to your ISP (and have your link up, of course!), like ppp0 or tun0... > I verified that iruserok() is the same for -current and garth's version. I think that that code (both rlogin and resolv) hasn't been really touched for at least a year... -- To err is human; but to completely screw things up you have to be root. - Andrew.V.Kovalev@jet.msk.su