Date: Tue, 09 Sep 1997 07:29:23 +0100 From: Brian Somers <brian@awfulhak.org> To: Terry Lambert <tlambert@primenet.com> Cc: brian@awfulhak.org (Brian Somers), nate@mt.sri.com, freebsd-hackers@freebsd.org Subject: Re: un-neccessary DNS lookups (was Re: Divert sockets..) Message-ID: <199709090629.HAA09296@awfulhak.demon.co.uk> In-Reply-To: Your message of "Mon, 08 Sep 1997 23:35:40 -0000." <199709082335.QAA20128@usr09.primenet.com>
index | next in thread | previous in thread | raw e-mail
> > > > # 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 <brian@awfulhak.org>, <brian@freebsd.org>
<http://www.awfulhak.org>
Don't _EVER_ lose your sense of humour....
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709090629.HAA09296>
