1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

ClouDNS: Add CLOUDNS_WR (Web Redirects) (#1421)

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
tpdn
2022-03-02 23:21:51 +09:00
committed by GitHub
parent 1f741088a9
commit fc75f89271
5 changed files with 19 additions and 2 deletions

View File

@ -59,6 +59,7 @@ func init() {
RecordAuditor: AuditRecords,
}
providers.RegisterDomainServiceProviderType("CLOUDNS", fns, features)
providers.RegisterCustomRecordType("CLOUDNS_WR", "CLOUDNS", "WR")
}
// GetNameservers returns the nameservers for a domain.
@ -278,7 +279,7 @@ func toReq(rc *models.RecordConfig) (requestParams, error) {
}
switch rc.Type { // #rtype_variations
case "A", "AAAA", "NS", "PTR", "TXT", "SOA", "ALIAS", "CNAME":
case "A", "AAAA", "NS", "PTR", "TXT", "SOA", "ALIAS", "CNAME", "WR":
// Nothing special.
case "MX":
req["priority"] = strconv.Itoa(int(rc.MxPreference))