• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Input Slave DNS Manager - Add new option -clean

B4c4rd1

Regular Pleskian
Since the bind version bind> = 9.10.0 the new option "rndc delzone -clean [ZONE]" is supported. This also deletes all related files.

When is the option added?

This makes it possible to make the same zone available on another server. (If deleted before)

Manual:
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.)
 
Last edited:
Anyone who needs the option can customize the DNS slave manager:

In the file: /opt/psa/admin/plib/modules/slave-dns-manager/library/Rndc.php

Line: 63

Old:
PHP:
$this->_call($slave, "delzone \"{$domain}\" \"{$slave->getRndcClass()}\" \"{$slave->getRndcView()}\"");

New:
PHP:
$this->_call($slave, "delzone -clean \"{$domain}\" \"{$slave->getRndcClass()}\" \"{$slave->getRndcView()}\"");
 
Back
Top