plesk / ext-slave-dns-manager

The extension for managing a remote slave DNS server via rndc protocol (bind).
Other
16 stars 12 forks source link

Add flag "-clean" to "rndc delzone" for BIND v9.10+ #29

Closed ayamshanov closed 6 years ago

ayamshanov commented 6 years ago

Since BIND v9.10, DNS server supports option "-clean" with command "delzone".

delzone [-clean] zone [class [view]] Delete a zone while the server is running. Only zones that were originally added via rndc addzone can be deleted in this manner.

If the -clean is specified, the zone's master file (and journal file, if any) will be deleted along with the zone. Without the -clean option, zone files must be cleaned up by hand. (If the zone is of type "slave" or "stub", the files needing to be cleaned up will be reported in the output of the rndc delzone command.)

(c) manual page for rndc