I have an existing local rpz file to keep track of block domains. If I add new entry to this file, what is the best way to inform Unbound that this list has been updated?
Should I use unbound-control rpz_disable and then rpz_enable or do I use unbound-control reload command?
Hi Mark,
Reloading would work but then you reload everything which also means the cache content is gone.
You can issue
unbound-control auth_zone_reload $zone_name
instead, to make unbound just reread the zone file.
Best regards,
-- George
Thanks George,
Just a follow up question related to RPZ. When new RPZ file has been created and registered in unbound.conf is it necessary to perform unbound-control reload command or would unbound-control auth_zone_reload $zone_name work?
Hi Mark,
You need to run `unbound-control reload` since the configuration changed and unbound needs to learn about the new zone.
If you try to run `unbound-control auth_zone_reload $zone_name` unbound will complain that it doesn't know about $zone_name.
Best regards,
-- George