]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Send NOFITY messages after deleting private-type records.
authorTony Finch <dot@dotat.at>
Thu, 16 Jan 2020 15:46:04 +0000 (15:46 +0000)
committerMark Andrews <marka@isc.org>
Thu, 23 Jan 2020 13:02:44 +0000 (00:02 +1100)
The `rndc signing -clear` command cleans up the private-type records
that keep track of zone signing activity, but before this change it
did not tell the secondary servers that the zone has changed.

(cherry picked from commit f3f7b7df5dc920eb982c48419126527d18d2c0a2)

lib/dns/zone.c

index 3923d7f9ab39dfad4ec5adebffc99fd1d4e61be7..edfddc8ac5f1335e8d9729a91681d836c5061cfc 100644 (file)
@@ -19426,7 +19426,8 @@ keydone(isc_task_t *task, isc_event_t *event) {
                commit = true;
 
                LOCK_ZONE(zone);
-               DNS_ZONE_SETFLAG(zone, DNS_ZONEFLG_LOADED);
+               DNS_ZONE_SETFLAG(zone, DNS_ZONEFLG_LOADED|
+                                DNS_ZONEFLG_NEEDNOTIFY);
                zone_needdump(zone, 30);
                UNLOCK_ZONE(zone);
        }