mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2026-01-06 00:05:18 +08:00
CLOUDFLARE: Add support for PTR records (#1496)
This commit is contained in:
parent
19550aeed9
commit
013a059dc7
1 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ var features = providers.DocumentationNotes{
|
|||
providers.CanUseAlias: providers.Can("CF automatically flattens CNAME records into A records dynamically"),
|
||||
providers.CanUseCAA: providers.Can(),
|
||||
providers.CanUseDSForChildren: providers.Can(),
|
||||
providers.CanUsePTR: providers.Cannot(),
|
||||
providers.CanUsePTR: providers.Can(),
|
||||
providers.CanUseSRV: providers.Can(),
|
||||
providers.CanUseSSHFP: providers.Can(),
|
||||
providers.CanUseTLSA: providers.Can(),
|
||||
|
|
@ -637,7 +637,7 @@ func stringDefault(value interface{}, def string) string {
|
|||
|
||||
func (c *cloudflareProvider) nativeToRecord(domain string, cr cloudflare.DNSRecord) (*models.RecordConfig, error) {
|
||||
// normalize cname,mx,ns records with dots to be consistent with our config format.
|
||||
if cr.Type == "CNAME" || cr.Type == "MX" || cr.Type == "NS" {
|
||||
if cr.Type == "CNAME" || cr.Type == "MX" || cr.Type == "NS" || cr.Type == "PTR" {
|
||||
if cr.Content != "." {
|
||||
cr.Content = cr.Content + "."
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue