AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home/overview.html
GNU General Public License v3.0
25.63k stars 1.84k forks source link

"Disable resolving of IPv6 addresses" per client basis #7293

Open vincejv opened 1 month ago

vincejv commented 1 month ago

Prerequisites

The problem

Apparently, there are some problematic clients that try to connect to IPv6 addresses using the returned AAAA record through their link local ipv6 address when the DNS resolver returns an AAAA record.

User experience is slow loading of IPv6 enabled websites in clients which are IPv4 only, the client connects to the IPv6 website and waits for the timeout.

The usual setup for adguardhome is for a single network only, but there some niche setups wherein a single adguardhome instance is used for two networks, one for IPv6 dual stack and the other could be an IPv4 exclusive network.

Examples

Proposed solution

Make the setting per client instead of per device.

Alternatives considered and additional information

The current implementation is lacking, as it's global setting, not client basis. Edit: Was able to figure out the custom filtering rule

*^$dnstype=AAAA,client=172.16.0.128/25,important