From owner-freebsd-questions@FreeBSD.ORG Mon Jul 5 05:33:47 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D348816A4CE for ; Mon, 5 Jul 2004 05:33:47 +0000 (GMT) Received: from typhoon.he.net (typhoon.he.net [64.62.229.2]) by mx1.FreeBSD.org (Postfix) with SMTP id C019643D5C for ; Mon, 5 Jul 2004 05:33:47 +0000 (GMT) (envelope-from bill@wiliweld.com) Received: from bsd.billschoolcraft.com ([63.204.157.14]) by typhoon.he.net for ; Sun, 4 Jul 2004 22:33:43 -0700 Date: Sun, 4 Jul 2004 22:33:46 -0700 (PDT) From: Bill Schoolcraft X-X-Sender: bill@bsd.billschoolcraft.com To: David Fuchs In-Reply-To: <40E856B9.30601@davidfuchs.ca> Message-ID: <20040704222946.A68094@bsd.billschoolcraft.com> References: <40E62A8C.1040908@davidfuchs.ca> <40E856B9.30601@davidfuchs.ca> System-ID: [en] (I; FreeBSD 5.2.1-RELEASE #0 x86) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org cc: Kevin Stevens Subject: Re: [Fwd: /etc/hosts and /etc/host.conf confusion] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jul 2004 05:33:47 -0000 At Sun, 4 Jul 2004 it looks like David Fuchs composed: > Excellent, ping does resolve a new entry in /etc/hosts properly. So as > you said, `host' is doing it's own thing. The manpage for host gives me > some leads which I'll follow through on. Hmm, in the Unix boxes I've seen, there is a file called /etc/nsswitch.conf that will have a line called "hosts:" it will dictate the order by which names are resolved. If you have the following your system will look at the /etc/hosts file first, then NISplus, then DNS. If you were to have "dns" first, it would ignore your /etc/hosts file (first) and hit your dns looking for answers. /etc/nsswitch.conf hosts: files nisplus dns -- Bill Schoolcraft PO Box 210076 -o) San Francisco CA 94121 /\ "UNIX, A Way Of Life." _\_v http://billschoolcraft.com