From owner-freebsd-questions Wed Jul 22 21:04:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA01793 for freebsd-questions-outgoing; Wed, 22 Jul 1998 21:04:06 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA01680 for ; Wed, 22 Jul 1998 21:03:38 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id NAA27564; Thu, 23 Jul 1998 13:32:49 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id NAA17496; Thu, 23 Jul 1998 13:32:48 +0930 (CST) Message-ID: <19980723133247.O8993@freebie.lemis.com> Date: Thu, 23 Jul 1998 13:32:47 +0930 From: Greg Lehey To: Mike Reeh , freebsd-questions@FreeBSD.ORG Subject: Re: Strange Reverse DNS problem. References: <19980723111237.H8993@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Mike Reeh on Wed, Jul 22, 1998 at 08:38:34PM -0700 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wednesday, 22 July 1998 at 20:38:34 -0700, Mike Reeh wrote: >> On Wednesday, 22 July 1998 at 11:39:49 -0500, Jaime Bozza wrote: >>> I was hoping someone here can answer this. >>> >>> On a FreeBSD (2.2.7-Stable) system I use, reverse DNS seems to work >>> sometimes and other times it doesn't. For example, a "w" or finger command >>> will show the hostnames fine, but last shows IP addresses. (Not for >>> everything though. Some IPs in last are shown correctly as hostnames while >>> others are just IPs) >>> >>> Any idea what could be wrong? >> >> This looks like a problem with last(1). I get it as well. > > From what I've noticed, that's how its supposed to be. Are you sure that > the 'last' entries that are displayed as the actual hostname (as opposed > to the IP #) aren't in your /etc/host* files? Just a thought.. Not in my case. I don't have any /etc/host* files. last(1) doesn't resolve the names itself, it relies on what it reads from /var/log/wtmp. I'd guess that that's where the real decision gets made, but I'm not interested enough to look at it in more detail. Greg -- See complete headers for address and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message