dnsmasq v2.90 introduced `--filter-rr=<rrtype>[,<rrtype>...]`.

uci config usage:

config dnsmasq
    ...
    option filter_rr 'AAAA,CNAME,NXDOMAIN,SRV,...'

The dnsmasq instance internally builds a linked list of RR to filter
from the individually supplied parameters, so it's harmless to provide
synonyms:

... --filter-A --filter-rr=A ...

See 
https://forum.openwrt.org/t/resolving-query-type-65-to-local-address-for-ios-clients-in-dnsmasq/179504/23

Tested on: 23.05.2

Signed-off-by: Paul Donald <newtwen+git...@gmail.com>
Tested-by: Vladimir Kochkovski <a...@getvladimir.com>
---
 package/network/services/dnsmasq/files/dnsmasq.init | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/network/services/dnsmasq/files/dnsmasq.init 
b/package/network/services/dnsmasq/files/dnsmasq.init
index 138a913f87..15cf194673 100755
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -973,8 +973,10 @@ dnsmasq_start()
        append_bool "$cfg" rapidcommit "--dhcp-rapid-commit"
        append_bool "$cfg" scriptarp "--script-arp"
 
+       # deprecate or remove filter-X in favor of filter-rr?
        append_bool "$cfg" filter_aaaa "--filter-AAAA"
        append_bool "$cfg" filter_a "--filter-A"
+       append_parm "$cfg" filter_rr "--filter-rr"
 
        append_parm "$cfg" logfacility "--log-facility"
        config_get logfacility "$cfg" "logfacility"
-- 
2.44.0


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to