On Wednesday, 12 August 2026 02:27:29 Pacific Daylight Time Mårten Nordheim via 
Interest wrote:
> As far as I remember, what is preferred depends on what is returned first in
> the DNS query, so if the AAAA listings are first then we try IPv6 first
> currently.

The sorting of the resolver reply does not depend on the order of receiving 
DNS queries. The resolver should sort the replies according to RFC 6724: IPv6 
is sorted first if you have an active, IPv6 address of matching scope (local 
global to remote global), otherwise they should appear after IPv4.

For example, right now I am at home and have IPv6:

$ resolvectl query irc.libera.chat
irc.libera.chat: 2001:708:40:2001::11ba        -- link: bond0
                 2001:4b7a:a008::6667          -- link: bond0
                 2604:6600:2002:15::2          -- link: bond0
                 108.181.132.149               -- link: bond0
                 46.16.175.175                 -- link: bond0
                 195.148.124.80                -- link: bond0


And once I got to the office:
$ resolvectl query irc.libera.chat
irc.libera.chat: 108.181.132.149               -- link: rtk000001000000
                 195.148.124.80                -- link: rtk000001000000
                 93.158.237.2                  -- link: rtk000001000000
                 2a0f:85c2:106:220::10         -- link: rtk000001000000
                 2001:6b0:78::100              -- link: rtk000001000000
                 2620:95:4007::95              -- link: rtk000001000000

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel DCG - Platform & Sys. Eng.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Interest mailing list
[email protected]
https://lists.qt-project.org/listinfo/interest

Reply via email to