瀏覽代碼

test multi mx

andre 5 月之前
父節點
當前提交
7e3fafa932
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      core/Helper/DnsHelper.php

+ 11 - 0
core/Helper/DnsHelper.php

@@ -117,6 +117,17 @@ class DnsHelper
 
     public function updateDNS($zoneID,$dnsParams)
     {
+        $nameServer = localAPI('DomainGetNameservers', ['domainid' => $zoneID], 'admin');
+
+        logModuleCall(
+            'kerioEmail',
+            __FUNCTION__,
+            $zoneID,
+            'DEbug',
+            $nameServer
+        );
+
+
         $dnsZone = localAPI('dnsmanager', array( 'dnsaction' => 'getZone', 'zone_id' => $zoneID));
         if($dnsZone['result'] != 'success') {
             return 'Error: cloud not fetch zone for ID ' . $zoneID;