|
|
@@ -570,7 +570,7 @@ function cwp7_setDNS($params) {
|
|
|
$dnsZone = localAPI('dnsmanager', array( 'dnsaction' => 'getZone', 'zone_id' => $zoneID));
|
|
|
$zoneRecords = array();
|
|
|
$newRecord = array(
|
|
|
- 'line' => $hostName.'.|A|0',
|
|
|
+ 'line' => $hostName.'|A|0',
|
|
|
'name' => $hostName,
|
|
|
'type' => 'A',
|
|
|
'class' => 'IN',
|
|
|
@@ -580,7 +580,7 @@ function cwp7_setDNS($params) {
|
|
|
);
|
|
|
array_push($zoneRecords, $newRecord);
|
|
|
foreach($dnsZone['data']->records as $record) {
|
|
|
- if($record->name != $hostName && $record->type != 'A' && $record->type != 'CNAME') {
|
|
|
+ if($record->name != $hostName || $record->type != 'A' || $record->type != 'CNAME') {
|
|
|
array_push($zoneRecords, $record);
|
|
|
};
|
|
|
}
|