Does bind read /etc/hosts?

Fajar A. Nugraha work at fajar.net
Wed Jul 16 03:03:09 UTC 2014


On Wed, Jul 16, 2014 at 9:55 AM, Mark Andrews <marka at isc.org> wrote:
>
> In message <53C5E714.5080307 at thelounge.net>, Reindl Harald writes:
>> > 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
>
> Neither dnsmasq nor named read /etc/hosts.

>From dnsmasq man page:
"
...  It loads the contents of /etc/hosts so that local hostnames which
do not appear in the global DNS can be resolved and also answers DNS
queries for DHCP configured hosts"

So dnsmasq does read /etc/hosts. Or did you mean something else?

-- 
Fajar


More information about the bind-users mailing list