dnsmasq: add support for filter-AAAA/A
This add --filter-A and --filter-AAAA options, to remove IPv4 or IPv6 addresses from DNS answers. these options is supported since version 2.87. Co-authored-by: NueXini <nuexini@alumni.tongji.edu.cn> Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
This commit is contained in:
parent
6830fb37cb
commit
4979d16fb1
2 changed files with 5 additions and 0 deletions
|
@ -21,6 +21,8 @@ config dnsmasq
|
||||||
#list bogusnxdomain '64.94.110.11'
|
#list bogusnxdomain '64.94.110.11'
|
||||||
option localservice 1 # disable to allow DNS requests from non-local subnets
|
option localservice 1 # disable to allow DNS requests from non-local subnets
|
||||||
option ednspacket_max 1232
|
option ednspacket_max 1232
|
||||||
|
option filter_aaaa 0
|
||||||
|
option filter_a 0
|
||||||
|
|
||||||
config dhcp lan
|
config dhcp lan
|
||||||
option interface lan
|
option interface lan
|
||||||
|
|
|
@ -960,6 +960,9 @@ dnsmasq_start()
|
||||||
append_bool "$cfg" rapidcommit "--dhcp-rapid-commit"
|
append_bool "$cfg" rapidcommit "--dhcp-rapid-commit"
|
||||||
append_bool "$cfg" scriptarp "--script-arp"
|
append_bool "$cfg" scriptarp "--script-arp"
|
||||||
|
|
||||||
|
append_bool "$cfg" filter_aaaa "--filter-AAAA"
|
||||||
|
append_bool "$cfg" filter_a "--filter-A"
|
||||||
|
|
||||||
append_parm "$cfg" logfacility "--log-facility"
|
append_parm "$cfg" logfacility "--log-facility"
|
||||||
config_get logfacility "$cfg" "logfacility"
|
config_get logfacility "$cfg" "logfacility"
|
||||||
append_parm "$cfg" cachesize "--cache-size"
|
append_parm "$cfg" cachesize "--cache-size"
|
||||||
|
|
Loading…
Reference in a new issue