mirror of
https://github.com/isc-projects/bind9.git
synced 2026-07-05 10:05:49 -04:00
skip non-dynamic zones when calling "rndc freeze" on all zones.
This commit is contained in:
parent
176da43a84
commit
cdb5d32d0c
1 changed files with 3 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue