From owner-freebsd-arch Sat Sep 2 9:54:53 2000 Delivered-To: freebsd-arch@freebsd.org Received: from gw.nectar.com (gw.nectar.com [208.42.49.153]) by hub.freebsd.org (Postfix) with ESMTP id 21C2A37B43C; Sat, 2 Sep 2000 09:54:51 -0700 (PDT) Received: from hamlet.nectar.com (hamlet.nectar.com [10.0.1.102]) by gw.nectar.com (Postfix) with ESMTP id 5A5FF1925F; Sat, 2 Sep 2000 11:54:50 -0500 (CDT) Received: (from nectar@localhost) by hamlet.nectar.com (8.9.3/8.9.3) id LAA00813; Sat, 2 Sep 2000 11:54:50 -0500 (CDT) (envelope-from nectar@spawn.nectar.com) Date: Sat, 2 Sep 2000 11:54:50 -0500 From: "Jacques A. Vidrine" To: Hajimu UMEMOTO Cc: arch@freebsd.org Subject: Re: Request for review: nsswitch Message-ID: <20000902115449.A704@hamlet.nectar.com> References: <20000831130504.A26641@hamlet.nectar.com> <200009010047.RAA43862@vashon.polstra.com> <20000901163728.C19985@hamlet.nectar.com> <20000903.000259.104074195.ume@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20000903.000259.104074195.ume@FreeBSD.org>; from ume@FreeBSD.org on Sun, Sep 03, 2000 at 12:02:59AM +0900 X-Url: http://www.nectar.com/ Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Sep 03, 2000 at 12:02:59AM +0900, Hajimu UMEMOTO wrote: > There is some confusion around search order of hard-coded default > sources. These were taken from NetBSD. The default sources were chosen after quite a bit of debate on the NetBSD mailing lists. In short, tradition won. > > gethostby*() dns -> files > getnetby*() dns -> files > getipnodeby*() files -> dns > getaddrinfo() files -> dns > getnameinfo() files -> dns > > It should be unified. Recently, FreeBSD's default behavior is lookup > /etc/hosts first by /etc/host.conf. Not exactly: FreeBSD's default behavior is BIND, then /etc/hosts. It just so happens that we install an /etc/host.conf file that gives behavior different than the hard-coded defaults. We could install an initial /etc/nsswitch.conf with contents `hosts: files dns' for the same reasons (whatever those were). -- Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message