|
|
@@ -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;
|