Does bind read /etc/hosts?
Mark Andrews
marka at isc.org
Tue Jul 15 10:38:12 UTC 2014
In message <BAY173-W11D824E324939A1BB89852BBF60 at phx.gbl>, houguanghua writes:
> Dear sir/madam,
>
> Before Bind consults authority NS, does it access /etc/hosts? In my
> testing, it does not even seem to access /etc/hosts. But someone tells
> me Bind can access /etc/hosts first. Can you pls tell me how to config
> Bind to access /etc/hosts fist?
>
> Thanks,
> Guanghua
No.
getaddrinfo, gethostbyname etc. however may access /etc/hosts, NIS,
mDNS, DNS and other databases. You need to read the documentation
that comes with your system for how to control these.
Mark
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: marka at isc.org
More information about the bind-users
mailing list