bind 9.9.0rc3 inline signing server not updating unsigned zone

Mark Andrews marka at isc.org
Tue Feb 21 22:42:02 UTC 2012


Ok.  The retransfer code needs to look at the unsigned zone rather
than the signed one which should fix the not found issue.  The
following should fix the issue.  It compiles but otherwise has not
been tested.

As to soa refresh queries they are not immediate for slave zones
for which we have a backup copy of the zone.  Think about a slave
service with 100000 zones and the resulting startup traffic if
they all made refresh queries at once.

Mark

Index: bin/named/server.c
===================================================================
RCS file: /proj/cvs/prod/bind9/bin/named/server.c,v
retrieving revision 1.638.4.3
diff -u -r1.638.4.3 server.c
--- bin/named/server.c	7 Feb 2012 00:58:40 -0000	1.638.4.3
+++ bin/named/server.c	21 Feb 2012 22:39:17 -0000
@@ -5986,8 +5986,15 @@
 ns_server_retransfercommand(ns_server_t *server, char *args) {
 	isc_result_t result;
 	dns_zone_t *zone = NULL;
+	dns_zone_t *raw = NULL;
 	dns_zonetype_t type;
 
+	dns_zone_getraw(zone, &raw);
+	if (raw != NULL) {
+		dns_zone_detach(&zone);
+		dns_zone_attach(raw, &zone);
+		dns_zone_detach(&raw);
+	}
 	result = zone_from_args(server, args, NULL, &zone, NULL, ISC_TRUE);
 	if (result != ISC_R_SUCCESS)
 		return (result);
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org



More information about the bind-users mailing list