Does bind read /etc/hosts?
Reindl Harald
h.reindl at thelounge.net
Wed Jul 16 02:44:36 UTC 2014
Am 16.07.2014 03:27, schrieb houguanghua:
> Sorry for what I said isn't very clear
you wheer clear
> I did know when the /etc/hosts is accessed in the OS
agreed
> What I want to know is whether the named access the hosts file
> The /etc/hosts file isn't in the client's system,
for bind applies the same as for bind-utils (dig, nslookup...)
anything else would be strange and unpredictable behavior
> but in the system of Local DNS server where the 'named' task runs. For example:
> In the /etc/hosts file of Local DNS server(LDNS), one line exists as follows:
> 10.10.10.1 www.google.com
bind don't care about that
> A client querys this LDNS to get the IP of 'www.google.com' (the client
> may use dig,nslookup command. No host line is configured in /etc/hosts
> of this client ), what IP will be returned to the client?
the one of the DNS system
> Can the LDNS return 10.10.10.1 defined in the /etc/hosts to the client?
> maybe some special configuration in named can support this feature
wrong tool - > dnsmasq can but on the other hand has no bind-like zonefiles
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20140716/aeb73540/attachment.bin>
More information about the bind-users
mailing list