域名解析支持华为云解析DNS

This commit is contained in:
GoEdgeLab
2021-08-04 22:14:54 +08:00
parent 22176739be
commit 862fd6f464
11 changed files with 1727 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ type ProviderType = string
const (
ProviderTypeDNSPod ProviderType = "dnspod" // DNSPod
ProviderTypeAliDNS ProviderType = "alidns" // 阿里云DNS
ProviderTypeHuaweiDNS ProviderType = "huaweiDNS" // 华为DNS
ProviderTypeDNSCom ProviderType = "dnscom" // dns.com
ProviderTypeCloudFlare ProviderType = "cloudFlare" // CloudFlare DNS
ProviderTypeLocalEdgeDNS ProviderType = "localEdgeDNS" // 和当前系统集成的EdgeDNS
@@ -31,6 +32,11 @@ func FindAllProviderTypes() []maps.Map {
"code": ProviderTypeDNSPod,
"description": "DNSPod提供的DNS服务。",
},
{
"name": "华为云DNS",
"code": ProviderTypeHuaweiDNS,
"description": "华为云解析DNS。",
},
/**{
"name": "帝恩思DNS.COM",
"code": ProviderTypeDNSCom,
@@ -74,6 +80,8 @@ func FindProvider(providerType ProviderType) ProviderInterface {
return &DNSPodProvider{}
case ProviderTypeAliDNS:
return &AliDNSProvider{}
case ProviderTypeHuaweiDNS:
return &HuaweiDNSProvider{}
case ProviderTypeCloudFlare:
return &CloudFlareProvider{}
case ProviderTypeLocalEdgeDNS: