Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Apr 1999 08:38:19 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Robert Watson <robert+freebsd@cyrus.watson.org>
Cc:        Rahul Dhesi <dhesi@rahul.net>, freebsd-current@FreeBSD.org
Subject:   Re: showing full host names in output from who/finger/last 
Message-ID:  <199904120738.IAA02356@keep.lan.Awfulhak.org>
In-Reply-To: Your message of "Sun, 11 Apr 1999 19:05:30 EDT." <Pine.BSF.3.96.990411190058.11402A-100000@fledge.watson.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
[.....]
> I got sick of seing "invalid hostname" in my wtmps a while ago on my 2.x
> machines.  That is an exceptionally useless piece of behavior, if you ask
> me.  Sshd writes out IPs and I find that to be much more consistent (and
> useful).

Sshd gets it wrong though.  It gets the full hostname and then a 
freebsd patch changes that to an IP if the name is >UT_HOSTSIZE.

In -current, this behaviour has been changed to call trimdomain() 
(trimdomain() has just been documented too), and if the result still 
doesn't fit in UT_HOSTSIZE it reverts to an IP number.  This should 
be pretty consistent for all the stuff in libexec now too.

>   Robert N Watson 
> 
> robert@fledge.watson.org              http://www.watson.org/~robert/
> PGP key fingerprint: 03 01 DD 8E 15 67 48 73  25 6D 10 FC EC 68 C1 1C
> 
> Carnegie Mellon University            http://www.cmu.edu/
> TIS Labs at Network Associates, Inc.  http://www.tis.com/
> Safeport Network Services             http://www.safeport.com/

-- 
Brian <brian@Awfulhak.org>                        <brian@FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@OpenBSD.org>
Don't _EVER_ lose your sense of humour !          <brian@uk.FreeBSD.org>




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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