Results 1 to 4 of 4

Thread: ipv6 disabled; dns query is still AAAA

  1. #1
    Join Date
    Nov 2004
    Beans
    560
    Distro
    Ubuntu 12.04 Precise Pangolin

    ipv6 disabled; dns query is still AAAA

    i disabled ipv6 on my machine: it has no ipv6 address. but still the dns queries ($ hostname -f or $ sudo) are issued as AAAA queries.

    how can i prevent that from happening and sending out A queries only? i tried to tamper a bit with /etc/gai.conf but to no avail so far.

    any ideas? ...this is on ubuntu 12.04.

  2. #2
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,515
    Distro
    Ubuntu Development Release

    Re: ipv6 disabled; dns query is still AAAA

    How did you disbale ipv6? I found that I had to disable it right at the grub level, or somehow some ipv6 stuff remained (I can not recall the exact details anymore). I have this line in my /etc/default/grub file:
    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"
    If you edit the grub file remember to then execute
    Code:
    sudo update-grub
    Last edited by Doug S; June 7th, 2012 at 03:54 PM. Reason: added update-grub reminder

  3. #3
    Join Date
    Nov 2004
    Beans
    560
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: ipv6 disabled; dns query is still AAAA

    thanks for your reply. but as i said: my ipv6 is disabled. and still applications (such as firefox e.g.) can decide to send out AAAA DNS queries.

  4. #4
    Join Date
    Nov 2006
    Location
    Wisconsin, USA
    Beans
    920
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: ipv6 disabled; dns query is still AAAA

    What kind of DNS queries one sends out (A, AAAA, NS, PTR, SOA, TXT, ...) is pretty much independent of which network transport is carrying them to an upstream recursive server (IPv4, IPv6). It's completely legitimate to ask AAAA questions over v4 transports. I quite understand your desire not to request AAAA responses that will be unusable in the absence of any IPv6 routing. Unfortunately, this is pretty much controlled by the client app, not generically by the OS, so it's hard to completely abolish.

    For the specific case of firefox, in about:config set network.dns.disableIPv6 to true.

    Adjusting /etc/gai.conf isn't likely to affect A versus AAAA DNS query behavior by applications, sorry. I think you can cause IPv4 destination addresses to be preferred to IPv6 (sorted earlier in the combined getaddrinfo(3) output list) by boosting the precedence of global scope V4 mapped addresses ::ffff:0:0/96 above global scope v6 ::0, e.g. replace
    Code:
    precedence ::ffff:0:0/96  10
    with
    Code:
    precedence ::ffff:0:0/96  45
    per RFC 3484 section 6 rule 6. You don't need to adjust the label value; leave that alone.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •