From owner-freebsd-hackers Mon Sep 8 23:42:36 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA08662 for hackers-outgoing; Mon, 8 Sep 1997 23:42:36 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA08646 for ; Mon, 8 Sep 1997 23:42:32 -0700 (PDT) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id HAA09296; Tue, 9 Sep 1997 07:29:23 +0100 (BST) Message-Id: <199709090629.HAA09296@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: Terry Lambert cc: brian@awfulhak.org (Brian Somers), nate@mt.sri.com, freebsd-hackers@freebsd.org Subject: Re: un-neccessary DNS lookups (was Re: Divert sockets..) In-reply-to: Your message of "Mon, 08 Sep 1997 23:35:40 -0000." <199709082335.QAA20128@usr09.primenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 09 Sep 1997 07:29:23 +0100 From: Brian Somers Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > > # localhost > > > > 127.0.0.1 localhost localhost.lambert.org > > > > > > I know this sounds silly, but if you reverse the order of the hosts > > > file, does it make any difference? > > > > > > 127.0.0.1 localhost.lambert.org localhost > > > > > > ... > > > > # 192.168.1 FreeBSD netblock > > > > 192.168.1.1 phaeton phaeton.lambert.org > > > > > > 192.168.1.1 phaeton.lambert.org phaeton > > > ... > > > > Strange.... OpenBSD gets this wrong by default (the way Terry has it). > > Ugh. Here's why: > > When I say "w" or "who", I want it to say "phaeton" not > "phaeton.lambert.org". I know I'm in "lambert.org". I want to be able > to see at a glance local domain vs. extra-local domain logins to my > system. > > I also want to be able to make a sed script to kill of extra-local > logins, if I want, without having to have the thing parse resolv.conf. > > The order I have them in is identical to the example i the FreeBSD > distributed /etc/hosts file for "localhost". > > This should be *irrelevant*. The only purpose order on a line in > the hosts file should have is determining which entry is reported > as the cannoical name to things that display cannonical names. > > Like "w". Hmm, 'w' or 'who' should be smart enough to chop off the domain bit if it's the same as hostname's. netstat does this. > Sheesh. > > > Terry Lambert > terry@lambert.org > --- > Any opinions in this posting are my own and not those of my present > or previous employers. -- Brian , Don't _EVER_ lose your sense of humour....