skip non-dynamic zones when calling "rndc freeze" on all zones.
This commit is contained in:
+3
-1
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: zt.c,v 1.47 2007/06/19 23:47:16 tbox Exp $ */
|
||||
/* $Id: zt.c,v 1.47.814.1 2011/03/19 02:06:57 each Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -299,6 +299,8 @@ freezezones(dns_zone_t *zone, void *uap) {
|
||||
|
||||
if (dns_zone_gettype(zone) != dns_zone_master)
|
||||
return (ISC_R_SUCCESS);
|
||||
if (!dns_zone_isdynamic(zone))
|
||||
return (ISC_R_SUCCESS);
|
||||
|
||||
frozen = dns_zone_getupdatedisabled(zone);
|
||||
if (freeze) {
|
||||
|
||||
Reference in New Issue
Block a user