From owner-freebsd-hackers Sun Oct 20 23:19:20 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4711B37B401; Sun, 20 Oct 2002 23:19:18 -0700 (PDT) Received: from samwise.jobeus.net (samwise.jobeus.net [205.206.125.238]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97C5243E77; Sun, 20 Oct 2002 23:19:17 -0700 (PDT) (envelope-from freebsd@jobeus.net) Received: (from root@localhost) by samwise.jobeus.net (8.12.6/8.12.3) id g9L6J7XN093083; Mon, 21 Oct 2002 00:19:07 -0600 (MDT) (envelope-from freebsd@jobeus.net) Received: from localhost (freebsd@localhost [127.0.0.1]) by samwise.jobeus.net (8.12.6/8.12.3av) with ESMTP id g9L6J4Ms093066; Mon, 21 Oct 2002 00:19:04 -0600 (MDT) (envelope-from freebsd@jobeus.net) Date: Mon, 21 Oct 2002 00:19:03 -0600 (MDT) From: Scott Carmichael To: "Crist J. Clark" Cc: freebsd-hackers@freebsd.org Subject: Re: IP resolving In-Reply-To: <20021018180519.GB45449@blossom.cjclark.org> Message-ID: <20021021001706.B86168-100000@samwise.jobeus.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Netstat reports properly... I think the issue is that an 'nslookup [ip]' will resolve to a host where an 'nslookup [host]' will not resolve to [ip]. Its the way the DNS on the other end is set up, but I can't exactly change that... I'd just like a 'w' to be able to report properly (ie. if [host] doesn't resolve to [ip], then just report [ip] with a 'w').. or something. =\ On Fri, 18 Oct 2002, Crist J. Clark wrote: > On Sun, Oct 13, 2002 at 11:00:26PM -0600, Scott Carmichael wrote: > > Can someone help me here? Is there a code change I can make somewhere? > > > > Please CC me on any replies, as I am not subscribed to -net or -hackers. > > -net removed. -hackers left (although this might be more of a > -questions thread). > > > ---------- Forwarded message ---------- > > Date: Fri, 11 Oct 2002 14:14:08 -0600 (MDT) > > From: Scott Carmichael > > To: freebsd-questions@FreeBSD.ORG > > Subject: IP resolving > > > > I would like to know two things... Why FreeBSD acts in the following way > > while OpenBSD does not, and if it's possible to fix this? > > > > It seems that if anyone connects to my FreeBSD server wish a hostname that > > does not match their IP, > > "Hostname does not match their IP?" What exactly does that mean? All > the OS knows is the remote IP address. It doesn't know what hostname > the remote claims to have. The application server might receive a > hostname though, but then I would expect the behavior to vary > according to the application used to connect. > > > I get a console message about the mismatch, and > > Something is generating a message to syslogd(8). Figure out what it is > and edit syslog.conf(5) appropriately. Are you using TCP wrappers or > something? > > > then if they connect via rlogin or ssh, 'who', 'w', 'last', etc. all > > report that they are connected _from_ MY box, which they aren't. > > Strange. What does 'netstat -a' or 'sockstat' report? 'w' works fine > for me. > -- > Crist J. Clark | cjclark@alum.mit.edu > | cjclark@jhu.edu > http://people.freebsd.org/~cjc/ | cjc@freebsd.org > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message