From owner-freebsd-current Mon Apr 12 1:14:37 1999 Delivered-To: freebsd-current@freebsd.org Received: from bolero-x.rahul.net (bolero.rahul.net [192.160.13.1]) by hub.freebsd.org (Postfix) with SMTP id B0B9714FA3 for ; Mon, 12 Apr 1999 01:14:34 -0700 (PDT) (envelope-from dhesi@rahul.net) Received: from waltz.rahul.net by bolero-x.rahul.net with SMTP id AA11567 (5.67b8/IDA-1.5 for ); Mon, 12 Apr 1999 01:12:16 -0700 Received: by waltz.rahul.net (5.67b8/jive-a2i-1.0) id AA16244; Mon, 12 Apr 1999 01:12:14 -0700 Message-Id: <199904120812.AA16244@waltz.rahul.net> To: freebsd-current@freebsd.org Subject: Re: showing full host names in output from who/finger/last In-Reply-To: Message from Robert Watson of Sun, 11 Apr 99 19:05:30 -0500 Date: Mon, 12 Apr 99 01:12:14 -0700 From: Rahul Dhesi Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Robert Watson writes: > I'd actually like to see wtmp only use IP addresses, never hostnames. > Spoofed names are fairly easy to arrange; with IP filtering on border > routers, spoofed IPs are harder.... > This of course sticks you with the task of DNS > lookups when viewing wtmp, when you may already have done them at login > time.... The 'finger', 'who', and 'w' commands on the SunOS machines here all do DNS lookups for longer hostnames, and it's rare that there is any significant DNS lookup delay. The reasons are simple: The lookup was done when the user logged in, so the DNS server has the answer in its cache. And even if not, if anybody did finger/who/w in the recent past, that caused the answer to be brought into the name server's cache. (I do run BIND with negative caching enabled, which probably helps keep delays short for reverse lookups where some name server is not responding.) Rahul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message