From owner-freebsd-current Mon Apr 12 8:36: 6 1999 Delivered-To: freebsd-current@freebsd.org Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (Postfix) with ESMTP id 60C0B155AC for ; Mon, 12 Apr 1999 08:35:59 -0700 (PDT) (envelope-from brian@lan.awfulhak.org) Received: from keep.lan.Awfulhak.org (keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.9.2/8.9.2) with ESMTP id QAA10052; Mon, 12 Apr 1999 16:33:36 +0100 (BST) (envelope-from brian@lan.awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id IAA02356; Mon, 12 Apr 1999 08:38:20 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199904120738.IAA02356@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Robert Watson Cc: Rahul Dhesi , freebsd-current@FreeBSD.org Subject: Re: showing full host names in output from who/finger/last In-reply-to: Your message of "Sun, 11 Apr 1999 19:05:30 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 12 Apr 1999 08:38:19 +0100 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [.....] > 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 Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message