|
|
@@ -169,13 +169,21 @@ class Settings extends DataTable implements ClientArea
|
|
|
|
|
|
foreach($domains as $domain){
|
|
|
in_array($domain,$clientDomains) ? $selfdomain = 'active' : $selfdomain = 'inactive';
|
|
|
- $dns->selfDns($domain) ? $selfDns = 'active' : $selfDns = 'inactive';
|
|
|
- $dnsRecords = $dns->getMX($domain);
|
|
|
- $dnsRecords['mx'] == 'set' ? $mx = 'active' : $mx = 'inactive';
|
|
|
- $dnsRecords = $dns->getTxtRecords($domain);
|
|
|
- $dnsRecords['spf'] == 'set' ? $spf = 'active' : $spf = 'inactive';
|
|
|
- $dnsRecords['dmarc'] == 'set' ? $dmarc = 'active' : $dmarc = 'inactive';
|
|
|
- $dnsRecords['dkim'] == 'set' ? $dkim = 'active' : $dkim = 'inactive';
|
|
|
+ $zoneID = $dns->selfDns($domain);
|
|
|
+// if($zoneID){
|
|
|
+ $selfDns = 'active';
|
|
|
+ $dnsZone = $dns->getZone($zoneID);
|
|
|
+
|
|
|
+
|
|
|
+ // } else {
|
|
|
+ // $selfDns = 'inactive';
|
|
|
+ $dnsRecords = $dns->getMX($domain);
|
|
|
+ $dnsRecords['mx'] == 'set' ? $mx = 'active' : $mx = 'inactive';
|
|
|
+ $dnsRecords = $dns->getTxtRecords($domain);
|
|
|
+ $dnsRecords['spf'] == 'set' ? $spf = 'active' : $spf = 'inactive';
|
|
|
+ $dnsRecords['dmarc'] == 'set' ? $dmarc = 'active' : $dmarc = 'inactive';
|
|
|
+ $dnsRecords['dkim'] == 'set' ? $dkim = 'active' : $dkim = 'inactive';
|
|
|
+ // }
|
|
|
$tmp = [
|
|
|
'domain' => $domain,
|
|
|
'mxactive' => $mx,
|
|
|
@@ -191,7 +199,7 @@ class Settings extends DataTable implements ClientArea
|
|
|
logModuleCall(
|
|
|
'kerioEmail',
|
|
|
__FUNCTION__,
|
|
|
- $data,
|
|
|
+ $dnsZone,
|
|
|
'Debug Settings',
|
|
|
$dnsRecords
|
|
|
);
|