From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 14 06:56:17 2005 Return-Path: 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 2E32F16A4CE; Mon, 14 Feb 2005 06:56:17 +0000 (GMT) Received: from smtp2.server.rpi.edu (smtp2.server.rpi.edu [128.113.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id C75DE43D46; Mon, 14 Feb 2005 06:56:16 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp2.server.rpi.edu (8.13.0/8.13.0) with ESMTP id j1E6uEBg000413; Mon, 14 Feb 2005 01:56:15 -0500 Mime-Version: 1.0 Message-Id: In-Reply-To: <20050214061622.GA70826@cirb503493.alcatel.com.au> References: <420F8564.5060200@FreeBSD.org> <20050214061622.GA70826@cirb503493.alcatel.com.au> Date: Mon, 14 Feb 2005 01:56:13 -0500 To: Peter Jeremy , Sergey Matveychuk From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) cc: hackers@freebsd.org Subject: Re: bin/76089: The "-n" option in /usr/bin/w is broken X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 06:56:17 -0000 At 5:16 PM +1100 2/14/05, Peter Jeremy wrote: >On Sun, 2005-Feb-13 19:50:44 +0300, Sergey Matveychuk wrote: >> IMHO to be more robust, we should make utmp to hold an IP address > > instead of a hostname and change all applications that use it. As > > bonus it will fix a delay on login when resolving does not work. > > And last(1) will show more useful IP address instead of changable > > hostname. > >Depending on the environment, the IP address may be more changeable >than the hostname. Definitely, in a DHCP or dialup environment, you >can't rely on the IP address at any time other than during the >session. There is little (if any) benefit in logging the IP address >instead of the hostname. Actually, it would be nice to log both. That's what I have done for some printer-related statistics (not sure if I did that in FreeBSD, but I do that for production use at RPI). -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu