[Dnsmasq-discuss] IPV6 preference

/dev/rob0 rob0 at gmx.co.uk
Thu May 9 13:04:53 BST 2013

> On Wed, May 8, 2013 at 10:25 AM, /dev/rob0 <rob0 at gmx.co.uk> wrote:
> > On Wed, May 08, 2013 at 05:43:01AM -0700, Ray Klassen wrote:
> >> Is there a way of configuring dnsmasq to always return an
> >> ipv6 address on a DNS request if there are both ipv4 and
> >> ipv6 available?
> >
> > I wouldn't think so. A client either asks for an A record
> > (ipv4) or AAAA (ipv6), it does not ask for "an address".
> >
On Wed, May 08, 2013 at 01:58:42PM -0700, Ray Klassen wrote:
> Huh. I would have thought the request by the application would
> be similar to running host.

An application uses a gethostbyname() call via its system C 
libraries.[1] But most applications do not directly query DNS. 
host(1) is, of course, an exception.

> as in
> #host google.com
> that returns a list of both ipv4 and ipv6 entries...

The behaviour of host(1) is described in its manual. See the "-t" 
option. You are seeing the default behaviour (with no -t query type 

[1] Whilst it might appear that I know what I am talking about, I 
    confess I really do not. I have no knowledge of the low-level
    intricacies of C libraries and their resolver(5) functions. I do,
    however, understand the general flow: which software parts do
    which things.
  http://rob0.nodns4.us/ -- system administration and consulting
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:

More information about the Dnsmasq-discuss mailing list