Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Sep 2007 11:14:54 +0800
From:      LI Xin <delphij@delphij.net>
To:        freebsd-net <freebsd-net@freebsd.org>
Subject:   [nsdispatch] hosts(5) does not override DNS lookup?
Message-ID:  <46E8AB2E.7020602@delphij.net>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi,

Recently one of our local user has found that he was unable to use
hosts(5) to override "localhost" lookup that happens in DNS, while doing
rpc_clnt_create.  A preliminary investigate of this seems to be related
to nsdispatch, by replacing:

hosts: files dns

With:

hosts: files

in /etc/nsswitch.conf, it does not query DNS.

Before diving into NSSWITCH code, I'd like to know if this is expected
behavior?  Say, when we have a match in hosts(5), should we even bother
to query DNS if configured hosts: files dns?

Cheers,
-- 
Xin LI <delphij@delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFG6KsuOfuToMruuMARCmgtAJUXcplUBthkyBHhBgYs9rxb3GJOAJ4s/Bh4
G9j2DGzBo4YermJ8cQTJbw==
=67mU
-----END PGP SIGNATURE-----

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