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
while ((!isset($soa) && (substr_count($soaDomain,'.') > 1))) {
377
-
$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 = ?", $soaDomain);
while ((!isset($soa) && (substr_count($soaDomain,'.') > 1))) {
695
-
$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 = ?", $soaDomain);
if ( ($selector || $dkim_private || $dkim_active) && $dkim_active )
700
699
//* create a new record only if the dns-zone exists
701
-
if ( isset($soa) && !empty($soa) ) {
700
+
if ( !empty($soa) ) {
702
701
$this->update_dns($this->dataRecord, $soa);
703
702
}
704
703
if (! $dkim_active) {
@@ -718,6 +717,20 @@ function onAfterUpdate() {
718
717
719
718
}
720
719
720
+
/**
721
+
* Lookup if we host a dns zone for this domain.
722
+
*/
723
+
privatefunctionfind_soa_domain($domain) {
724
+
global$app;
725
+
$soaDomain = $domain . '.';
726
+
$soa = null;
727
+
while ((!isset($soa) && (substr_count($soaDomain,'.') > 1))) {
728
+
$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 = ?", $soaDomain);
0 commit comments