summaryrefslogtreecommitdiff
path: root/bin/named/zoneconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/named/zoneconf.c')
-rw-r--r--bin/named/zoneconf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/named/zoneconf.c b/bin/named/zoneconf.c
index 3369c42de1f91..b3839762d3362 100644
--- a/bin/named/zoneconf.c
+++ b/bin/named/zoneconf.c
@@ -1082,7 +1082,12 @@ ns_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
obj = NULL;
result = ns_config_get(maps, "also-notify", &obj);
- if (result == ISC_R_SUCCESS) {
+ if (result == ISC_R_SUCCESS &&
+ (notifytype == dns_notifytype_yes ||
+ notifytype == dns_notifytype_explicit ||
+ (notifytype == dns_notifytype_masteronly &&
+ ztype == dns_zone_master)))
+ {
isc_uint32_t addrcount;
addrs = NULL;
keynames = NULL;