-
-
Notifications
You must be signed in to change notification settings - Fork 412
Description
When attempting to change the rpz-cname-override value in the 'rpz:' section of the Unbound configuration and reloading the configuration using unbound-control reload, the override does not take effect. The DNS server continues to reply with the CNAME specified before the change.
After restarting Unbound (kill), the new configuration runs correctly.
To reproduce
rpz:
name: "block.rpz."
rpz-action-override: cname
rpz-cname-override: dev01.example.com
zonefile: "/path/zone-rpz/block.rpz.zone"
Modify the value of rpz-cname-override in the Unbound configuration file.
rpz-cname-override: dev02.example.com
Execute unbound-control reload to reload the Unbound configuration.
The query reply a CNAME for dev01.example.com
Expected behavior
After reloading the Unbound configuration, the new value of rpz-cname-override should take effect, and the DNS server should reply with the updated CNAME for dev02.example.com.
System:
OS: FreeBSD
Unbound version -V: Version 1.19.1
Configure line: --with-libevent --with-libbsd --with-pthreads --enable-dnscrypt --enable-subnet
Linked libs: libevent 2.0.22-stable (it uses kqueue), OpenSSL 1.0.2j 26 Sep 2016
Linked modules: dns64 subnetcache respip validator iterator
DNSCrypt feature available
Additional information
Attempts to resolve the issue using commands such as rpz_disable, rpz_enable, auth_zone_reload, flush_zone, flush have been unsuccessful. The desired behavior is achieved only after restarting the Unbound service (kill), which is not desirable.