Goal
- As a user, i would want systemd-resolved to not allow any IPv6 AAAA queries with a small configuration change.
- Background: We have RHEL9 servers with IPv6 disabled in kernel, however our DNS still gives IPv6 addresses, while no-aaaa option in /etc/resolv.conf would solve this, the problem is that the support for no-aaaa only available to applications that use glibc.
- With this patch, i can set "DisableAAAAQuery=yes" in resolved.conf and any AAAA queries to systemd-resolved will be given a REFUSED message. However, IPv4 A records will still resolve.
Acceptance Criteria
- Verify `DisableAAAAQuery=yes` in /etc/systemd/resolved.conf: systemd-resolved will return DNS REFUSED for IPv6 AAAA queries while IPv4 A queries remain unaffected.
- Verify `DisableAAAAQuery=no` in /etc/systemd/resolved.conf: systemd-resolved will return both IPv6 AAAA and IPv4 A records.
- Verify by removing DisableAAAAQuery completely in /etc/systemd/resolved.conf: systemd-resolved will return both IPv6 AAAA and IPv4 A records.