[Dnsmasq-discuss] forwarded AAAA queries for /etc/hosts members

Ferenc Wagner wferi at niif.hu
Sat Sep 18 22:50:53 BST 2010

Ferenc Wagner <wferi at niif.hu> writes:

> If a host is present in /etc/hosts with IPv4 address only, and it's
> looked up, dnsmasq services the A record locally, but forwards the query
> for the AAAA record upstream.  I wonder if this is intentional.  The
> behaviour of the libc resolver differs in this this respect: it gives
> negative answer for the AAAA queries in this case, just like dnsmasq
> does with an appropriate --local option.

Looks like I was wrong, even the libc resolver goes out to the
nameserver for the AAAA record if /etc/hosts contains an IPv4 address
only.  The behviour of dnsmasq is consistent with this.
Sorry for the noise.

More information about the Dnsmasq-discuss mailing list