[nsdispatch] hosts(5) does not override DNS lookup?
LI Xin
delphij at delphij.net
Wed Sep 12 20:15:35 PDT 2007
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 at delphij.net> http://www.delphij.net/
FreeBSD - The Power to Serve!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20070913/78a7308e/signature.pgp
More information about the freebsd-net
mailing list