Hide Forgot
We are working upstream on a no-aaaa stub resolver option that suppresses DNS AAAA queries for diagnostic purposes. Upstream NEWS entry: +* The “no-aaaa” DNS stub resolver option has been added. System + administrators can use it to suppress AAAA queries made by the stub + resolver, including AAAA lookups triggered by NSS-based interfaces + such as getaddrinfo. Only DNS lookups are affected: IPv6 data in + /etc/hosts is still used, getaddrinfo with AI_PASSIVE will still + produce IPv6 addresses, and configured IPv6 name servers are still + used. To produce correct Name Error (NXDOMAIN) results, AAAA queries + are translated to A queries. The new resolver option is intended + preliminary for diagnostic purposes, to rule out that AAAA DNS queries + have adverse impact. It is incompatible with EDNS0 usage and DNSSEC + validation by applications. Patch: [PATCH v2 2/2] resolv: Implement no-aaaa stub resolver option https://sourceware.org/pipermail/libc-alpha/2022-June/139549.html The proposed patch does not directly affect AF_UNSPEC queries, so it is distinct from bug 1027452, which is why I'm filing a separate bug. Note to QE: Various “getent” queries (hosts, ahosts, ahostsv4, ahostsv6) for hosts in DNS are expected not to show any AAAA queries in tcpdump if the no-aaaa option is active.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (glibc bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:7684
NetworkManager integration is currently missing. If NetworkManager is used to manage /etc/resolv.conf, changes to this file will be overwritten. NetworkManager does not propagate no-aaaa from the interface DNS configuration even if it set there.
(In reply to Florian Weimer from comment #15) > NetworkManager integration is currently missing. FYI: reported as bug 2144521.