if(@$data['old']['dnssec_initialized']=='Y'&&strlen(@$data['old']['origin'])>3)exec('/usr/local/ispconfig/server/scripts/dnssec-delete.sh '.escapeshellcmd($data['old']['origin']));//delete old keys
if($data['new']['dnssec_wanted']=='Y')exec('/usr/local/ispconfig/server/scripts/dnssec-create.sh '.escapeshellcmd($data['new']['origin']));//Create new keys for new origin
}
if($data['new']['dnssec_wanted']=='Y'AND$data['new']['dnssec_initialized']=='N')if($data['new']['dnssec_wanted']=='Y')exec('/usr/local/ispconfig/server/scripts/dnssec-create.sh '.escapeshellcmd($data['new']['origin']));//Create new keys for new origin
//* Only write the master file for the current server
//* Only write the master file for the current server
$tmps=$app->db->queryAllRecords("SELECT origin, xfer, also_notify, update_acl FROM dns_soa WHERE active = 'Y' AND server_id=?",$conf["server_id"]);
$tmps=$app->db->queryAllRecords("SELECT origin, xfer, also_notify, update_acl, dnssec_initialized FROM dns_soa WHERE active = 'Y' AND server_id=?",$conf["server_id"]);
$zones=array();
$zones=array();
//* Check if the current zone that triggered this function has at least one NS record
//* Check if the current zone that triggered this function has at least one NS record
...
@@ -352,7 +354,8 @@ class bind_plugin {
...
@@ -352,7 +354,8 @@ class bind_plugin {
//* Loop trough zones
//* Loop trough zones
foreach($tmpsas$tmp){
foreach($tmpsas$tmp){
$zone_file=$pri_zonefiles_path.str_replace("/","_",substr($tmp['origin'],0,-1)).'.signed';//.signed is for DNSSEC-Implementation