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
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig919655627E1CC87DEA2FC942
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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,
--=20
Xin LI <delphij@delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!


--------------enig919655627E1CC87DEA2FC942
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----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-----

--------------enig919655627E1CC87DEA2FC942--



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