Skip to content

filter-rr=ANY directive not being honoured in FTL v6.5 #2789

@heybrodes

Description

@heybrodes

Environment:

Pi-hole FTL version: v6.5
Bundled dnsmasq version: 2.92rc1
OS: Ubuntu/Debian (Linux, amd64)

Description:
The filter-rr=ANY directive placed in /etc/dnsmasq.d/99-public.conf is not being applied. ANY queries are still being forwarded and answered rather than being filtered.
Steps to reproduce:

Add filter-rr=ANY to a custom config file in /etc/dnsmasq.d/
Restart pihole-FTL: systemctl restart pihole-FTL
Confirm syntax check passes: pihole-FTL --test returns dnsmasq: syntax check OK
Confirm config is being read: grep -r "filter-rr" /etc/dnsmasq.d/ returns the correct file and directive
Send an ANY query to the resolver: dig ANY example.com @

Expected behaviour:
ANY queries should be filtered and return an empty or NODATA response per the filter-rr directive, which has been supported since dnsmasq 2.86.
Actual behaviour:
ANY queries are forwarded upstream and full responses are returned to the client. This is visible in /var/log/pihole/pihole.log:
query[ANY] rfmw.com from x.x.x.x
forwarded rfmw.com to 127.0.0.1#5335
reply rfmw.com is
reply rfmw.com is
reply rfmw.com is
Additional notes:

The bundled dnsmasq version (2.92rc1) is well above the 2.86 minimum required for filter-rr support
The issue persists across restarts
Other directives in the same config file (bogus-priv, stop-dns-rebind, domain-needed) appear to work correctly
As a workaround, an iptables hashlimit rule has been applied to rate limit DNS traffic, but this does not address the core issue of ANY queries being answered

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions