Do not reuse zones whose "mirror" setting was changed

Update named_zone_reusable() so that it does not consider a zone to be
eligible for reuse if its old value of the "mirror" option differs from
the new one.  This causes "rndc reconfig" to create a new zone structure
whenever the value of the "mirror" option is changed, which ensures that
the previous zone database is not reused and that flags are properly set
in responses sourced from zones whose "mirror" setting was changed at
runtime.
This commit is contained in:
Michał Kępień
2018-07-05 10:54:56 +02:00
committed by Evan Hunt
parent 802a58d5c6
commit dbfd19c668
6 changed files with 73 additions and 2 deletions

View File

@@ -56,6 +56,11 @@ zone "verify-ixfr" {
ixfr-from-differences yes;
};
zone "verify-reconfig" {
type master;
file "verify-reconfig.db.signed";
};
zone "verify-unsigned" {
type master;
file "verify.db.in";