From owner-freebsd-questions@FreeBSD.ORG Sat Jan 17 21:08:49 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E870106564A for ; Sat, 17 Jan 2009 21:08:49 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout019.mac.com (asmtpout019.mac.com [17.148.16.94]) by mx1.freebsd.org (Postfix) with ESMTP id 0CAE18FC19 for ; Sat, 17 Jan 2009 21:08:48 +0000 (UTC) (envelope-from cswiger@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from [10.152.145.234] ([72.165.115.225]) by asmtp019.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0KDM00HQHTAC1B80@asmtp019.mac.com> for freebsd-questions@freebsd.org; Sat, 17 Jan 2009 12:08:46 -0800 (PST) Message-id: <5ABF38EC-4D4A-41A8-8CD1-4B731037D707@mac.com> From: Chuck Swiger To: troy@twisted.net In-reply-to: <20090117192043.GA13219@twisted.net> Date: Sat, 17 Jan 2009 12:08:36 -0800 References: <20090117192043.GA13219@twisted.net> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-questions@freebsd.org Subject: Re: Last commmand showing resolved hostname X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jan 2009 21:08:49 -0000 On Jan 17, 2009, at 11:20 AM, Troy wrote: > I have a question. Is there a way that you can make the 'last' > command > display the DNS resolved name of the users that have logged into a > machine > rather than the IP address. Showing both name and IP address would be > even better. The issue is that DNS hostnames can change between the time the wtmp entry was made and the time you run last and try to perform DNS resolution, so the wtmp database keeps IP addresses only. This being said, you can get what you've asked for by installing the / usr/ports/dns/adns port, and running "last | adnsresfilter". Regards, -- -Chuck