Dnsmasq filter-AAAA equivalent in pihole

Hi,

  1. I want that pihole will filter AAAA records, I want that pihole query responses will only have A records.

How to achieve that?

  1. Is it ok to disable ipv6 support on pihole via sysctl
    sysctl -w net.ipv6.conf.all.disable_ipv6=1
    sysctl -w net.ipv6.conf.default.disable_ipv6=1
    sysctl -w net.ipv6.conf.tun0.disable_ipv6=1

Thanks.

It's ok, but it absolutely will not stop AAAA queries. Devices can request AAAA records via IP4.

You can enter dnsmasq settings via Pi-hole's UI.

Simply enter filter-AAAA in the misc.dnsmasq.lines entry in the settings
(Under settings -> advanced -> all settings -> miscellaneous)

Doing so won't stop the queries. Devices will still be making them even if you have IPv6 disabled and they will still show up in the web interface and the logs if you have logging enabled.

But it will prevent the IPv6 address being provided in the response, if that is your aim.

You should be able to toggle the resolver.resolveIPV6 flag as well.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.