dnsmasq: add handling of `filter-rr` to init script
authorPaul Donald <newtwen+github@gmail.com>
Tue, 2 Apr 2024 01:16:02 +0000 (03:16 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 20 Oct 2024 19:56:16 +0000 (21:56 +0200)
commit9857b41fe9767cf8f4cc87332eacec83dc310588
tree6a36c868ff1556f5c781c8c8b6bdc75c6859a794
parent913368a223c3818d2b5b60b06820532038be3467
dnsmasq: add handling of `filter-rr` to init script

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+github@gmail.com>
Tested-by: Vladimir Kochkovski <ask@getvladimir.com>
Link: https://github.com/openwrt/openwrt/pull/14975
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/network/services/dnsmasq/files/dnsmasq.init