Skip to content

Inconsistent Behavior with Changing rpz-cname-override and doing a unbound-control reload #1021

@softov

Description

@softov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions