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:
@ -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))
|
||||
|
Reference in New Issue
Block a user