Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jul 1998 13:32:47 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Mike Reeh <michaelr@ss454.dyn.ml.org>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Strange Reverse DNS problem.
Message-ID:  <19980723133247.O8993@freebie.lemis.com>
In-Reply-To: <Pine.BSF.3.96.980722203518.27722A-100000@ss454.dyn.ml.org>; from Mike Reeh on Wed, Jul 22, 1998 at 08:38:34PM -0700
References:  <19980723111237.H8993@freebie.lemis.com> <Pine.BSF.3.96.980722203518.27722A-100000@ss454.dyn.ml.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980723133247.O8993>