mirror of
https://github.com/netcccyun/dnsmgr.git
synced 2026-02-21 15:31:12 +08:00
修复namesilo添加解析
This commit is contained in:
parent
b4258dbc81
commit
2ed8a717db
@ -126,6 +126,7 @@ class DnsHelper
|
||||
'huoshan' => ['DEF' => 'default', 'CT' => 'telecom', 'CU' => 'unicom', 'CM' => 'mobile', 'AB' => 'oversea'],
|
||||
'baidu' => ['DEF' => 'default', 'CT' => 'ct', 'CU' => 'cnc', 'CM' => 'cmnet', 'AB' => ''],
|
||||
'cloudflare' => ['DEF' => '0'],
|
||||
'namesilo' => ['DEF' => '0'],
|
||||
];
|
||||
|
||||
public static function getList()
|
||||
|
||||
@ -70,7 +70,8 @@ class CertDnsUtils
|
||||
}
|
||||
}
|
||||
|
||||
$res = $dns->addDomainRecord($row['name'], $row['type'], $row['value'], DnsHelper::$line_name[$drow['type']]['DEF'], 600);
|
||||
$ttl = $drow['type'] == 'namesilo' ? 3600 : 600;
|
||||
$res = $dns->addDomainRecord($row['name'], $row['type'], $row['value'], DnsHelper::$line_name[$drow['type']]['DEF'], $ttl);
|
||||
if (!$res && $row['type'] != 'CAA') throw new Exception('添加'.$domain.'解析记录失败,' . $dns->getError());
|
||||
$log('Add DNS Record: '.$domain.' '.$row['type'].' '.$row['value']);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user