You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CNR: add support for DNAME, DHCID, and SVCB record types (#4077)
<!--
## Before submiting a pull request
Please make sure you've run the following commands from the root
directory.
bin/generate-all.sh
(this runs commands like "go generate", fixes formatting, and so on)
## Release changelog section
Help keep the release changelog clear by pre-naming the proper section
in the GitHub pull request title.
Some examples:
* CICD: Add required GHA permissions for goreleaser
* DOCS: Fixed providers with "contributor support" table
* ROUTE53: Allow R53_ALIAS records to enable target health evaluation
More examples/context can be found in the file .goreleaser.yml under the
'build' > 'changelog' key.
!-->
Copy file name to clipboardExpand all lines: providers/cnr/cnrProvider.go
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -36,20 +36,20 @@ var features = providers.DocumentationNotes{
36
36
providers.CanUseAlias: providers.Can(),
37
37
// providers.CanUseAzureAlias: providers.Cannot(), // can only be supported by Azure provider
38
38
providers.CanUseCAA: providers.Can(),
39
-
providers.CanUseDHCID: providers.Cannot("Ask for this feature."),
40
-
providers.CanUseDNAME: providers.Cannot("Ask for this feature."),
39
+
providers.CanUseDHCID: providers.Can(),
40
+
providers.CanUseDNAME: providers.Can(),
41
41
providers.CanUseDNSKEY: providers.Unimplemented("Ask for this feature."),
42
42
providers.CanUseDS: providers.Unimplemented("Ask for this feature."),
43
43
providers.CanUseDSForChildren: providers.Unimplemented("Ask for this feature."), // CanUseDS implies CanUseDSForChildren
44
44
providers.CanUseHTTPS: providers.Cannot("Managed via (Query|Add|Modify|Delete)WebFwd API call. Data not accessible via the resource records list. Hard to integrate this into DNSControl by that."),
45
-
providers.CanUseLOC: providers.Cannot("Ask for this feature."),
45
+
providers.CanUseLOC: providers.Can(),
46
46
providers.CanUseNAPTR: providers.Can(),
47
47
providers.CanUsePTR: providers.Can(),
48
48
// providers.CanUseRoute53Alias: providers.Cannot(), // can only be supported by AWS Route53 provider
49
49
providers.CanUseSOA: providers.Cannot("The SOA record is managed on the DNSZone directly. Data only accessible via StatusDNSZone Request, not via the resource records list. Hard to integrate this into DNSControl by that."), // supported by bind, honstingde
50
50
providers.CanUseSRV: providers.Can("SRV records with empty targets are not supported"),
51
51
providers.CanUseSSHFP: providers.Can(),
52
-
providers.CanUseSVCB: providers.Cannot("Ask for this feature."),
// dotSuffixTypes lists record types whose content requires a trailing dot
19
+
// to be appended when returned by the API without one.
20
+
vardotSuffixTypes=map[string]bool{
21
+
"ALIAS": true, "CNAME": true, "DNAME": true,
22
+
"MX": true, "NS": true, "SRV": true, "PTR": true,
23
+
}
24
+
19
25
// Record covers an individual DNS resource record.
20
26
typeRecordstruct {
21
27
// DomainName is the zone that the record belongs to.
@@ -26,7 +32,7 @@ type Record struct {
26
32
Hoststring
27
33
// FQDN is the Fully Qualified Domain Name. It is the combination of the host and the domain name. It always ends in a ".". FQDN is ignored in CreateRecord, specify via the Host field instead.
28
34
Fqdnstring
29
-
// Type is one of the following: A, AAAA, ANAME, ALIAS, CNAME, MX, NS, SRV, or TXT.
35
+
// Type is the DNS record type (e.g. A, AAAA, CNAME, MX, LOC, SVCB, etc.).
30
36
Typestring
31
37
// Answer is either the IP address for A or AAAA records; the target for ANAME, CNAME, MX, or NS records; the text for TXT records.
32
38
// For SRV records, answer has the following format: "{weight} {port} {target}" e.g. "1 5061 sip.example.org".
0 commit comments