]> git.ipfire.org Git - thirdparty/bind9.git/commit
Replace the "mirror" zone option with "type mirror;"
authorMichał Kępień <michal@isc.org>
Tue, 9 Oct 2018 08:54:51 +0000 (10:54 +0200)
committerOndřej Surý <ondrej@sury.org>
Wed, 24 Oct 2018 18:32:55 +0000 (20:32 +0200)
commit2cb9e8a0209d6fe30afd2c303ffb284e5e7e185c
treef6b7ba34aecebc1cc0d962eb84646545a13a5412
parente1bb8de6f09325eaa54cae60f0f5a23b54fab2f4
Replace the "mirror" zone option with "type mirror;"

Use a zone's 'type' field instead of the value of its DNS_ZONEOPT_MIRROR
option for checking whether it is a mirror zone.  This makes said zone
option and its associated helper function, dns_zone_mirror(), redundant,
so remove them.  Remove a check specific to mirror zones from
named_zone_reusable() since another check in that function ensures that
changing a zone's type prevents it from being reused during
reconfiguration.
13 files changed:
bin/named/server.c
bin/named/zoneconf.c
bin/tests/system/mirror/README [new file with mode: 0644]
bin/tests/system/mirror/ns3/named.conf.in
bin/tests/system/mirror/setup.sh
bin/tests/system/mirror/tests.sh
lib/dns/include/dns/zone.h
lib/dns/win32/libdns.def.in
lib/dns/zone.c
lib/dns/zt.c
lib/isccfg/namedconf.c
lib/ns/query.c
util/copyrights