From owner-freebsd-hackers Mon Sep 8 16:35:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA14864 for hackers-outgoing; Mon, 8 Sep 1997 16:35:53 -0700 (PDT) Received: from usr09.primenet.com (tlambert@usr09.primenet.com [206.165.6.209]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA14855 for ; Mon, 8 Sep 1997 16:35:49 -0700 (PDT) Received: (from tlambert@localhost) by usr09.primenet.com (8.8.5/8.8.5) id QAA20128; Mon, 8 Sep 1997 16:35:41 -0700 (MST) From: Terry Lambert Message-Id: <199709082335.QAA20128@usr09.primenet.com> Subject: Re: un-neccessary DNS lookups (was Re: Divert sockets..) To: brian@awfulhak.org (Brian Somers) Date: Mon, 8 Sep 1997 23:35:40 +0000 (GMT) Cc: nate@mt.sri.com, tlambert@primenet.com, brian@awfulhak.org, freebsd-hackers@freebsd.org In-Reply-To: <199709082313.AAA06548@awfulhak.demon.co.uk> from "Brian Somers" at Sep 9, 97 00:13:51 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text 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". Sheesh. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.