You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$soa = $app->db->queryOneRecord("SELECT id AS zone, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other, server_id, ttl, serial FROM dns_soa WHERE active = 'Y' AND origin = ?", $this->dataRecord['domain'].'.');
302
+
if ( isset($soa) && !empty($soa) ) $this->update_dns($this->dataRecord, $soa);
$soa = $app->db->queryOneRecord("SELECT id AS zone, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other, server_id, ttl, serial FROM dns_soa WHERE active = 'Y' AND origin = ?", $this->dataRecord['domain']);
416
+
$soa = $app->db->queryOneRecord("SELECT id AS zone, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other, server_id, ttl, serial FROM dns_soa WHERE active = 'Y' AND origin = ?", $this->dataRecord['domain'].'.');
411
417
412
418
if ( ($selector || $dkim_private || $dkim_active) && $dkim_active )
413
419
//* create a new record only if the dns-zone exists
414
420
if ( isset($soa) && !empty($soa) ) {
415
421
$this->update_dns($this->dataRecord, $soa);
416
422
}
417
-
elseif ( !isset($this->dataRecord['dkim']) ) {
423
+
if (! $dkim_active) {
418
424
// updated existing dmarc-record to policy 'none'
419
-
$sql = "SELECT * from dns_rr WHERE name ='_dmarc.?.' AND data LIKE 'v=DMARC1%' AND ?";
0 commit comments