Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Sep 2000 11:54:50 -0500
From:      "Jacques A. Vidrine" <n@nectar.com>
To:        Hajimu UMEMOTO <ume@FreeBSD.org>
Cc:        arch@freebsd.org
Subject:   Re: Request for review: nsswitch
Message-ID:  <20000902115449.A704@hamlet.nectar.com>
In-Reply-To: <20000903.000259.104074195.ume@FreeBSD.org>; from ume@FreeBSD.org on Sun, Sep 03, 2000 at 12:02:59AM %2B0900
References:  <20000831130504.A26641@hamlet.nectar.com> <200009010047.RAA43862@vashon.polstra.com> <20000901163728.C19985@hamlet.nectar.com> <20000903.000259.104074195.ume@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000902115449.A704>