|
|
@@ -589,12 +589,12 @@ function cwp7_setDNS($params) {
|
|
|
$dnsZone = localAPI('dnsmanager', array( 'dnsaction' => 'getZone', 'zone_id' => $zoneID));
|
|
|
$zoneRecords = array();
|
|
|
$newRecord = array(
|
|
|
- 'line' => $hostName.'|A|0',
|
|
|
+ 'line' => $hostName.'|CNAME|0',
|
|
|
'name' => $hostName,
|
|
|
- 'type' => 'A',
|
|
|
+ 'type' => 'CNAME',
|
|
|
'class' => 'IN',
|
|
|
'data' => array(
|
|
|
- 'address' => $params['serverip'],
|
|
|
+ 'address' => $params['servername'],
|
|
|
),
|
|
|
);
|
|
|
array_push($zoneRecords, $newRecord);
|