Skip to content

Commit e75c1ac

Browse files
committed
Squashed commit of the following:
commit 901a3ac Author: Tom Limoncelli <[email protected]> Date: Tue Jan 21 14:43:33 2025 -0500 CHORE: Update dependencies (#3397) commit 70e9659 Author: Tom Limoncelli <[email protected]> Date: Tue Jan 21 14:29:53 2025 -0500 MSDNS: Provider is failing due to lint fix gone wrong (#3396) commit 5e15bbe Author: Jakob Ackermann <[email protected]> Date: Sat Jan 18 13:54:37 2025 +0000 BUG: fetch zones once in ZoneCache (#3394) commit a631c5b Author: Kai Schwarz <[email protected]> Date: Fri Jan 17 20:15:10 2025 +0100 CNR: Initial Performance improvement; golint review (#3391) commit e1c9785 Author: Tom Limoncelli <[email protected]> Date: Fri Jan 17 07:11:10 2025 -0500 CHORE: Update dependencies (#3385) commit 9e88b6a Author: Tom Limoncelli <[email protected]> Date: Thu Jan 16 21:47:10 2025 -0500 CICD: Make pager tests more visible (#3387) commit 67db0e2 Author: Tom Limoncelli <[email protected]> Date: Thu Jan 16 14:41:18 2025 -0500 GCLOUD: remove (irrelevant) slow test (#3384) commit c348e35 Author: Tom Limoncelli <[email protected]> Date: Thu Jan 16 14:32:32 2025 -0500 GCLOUD: CICD: Skip the pager1201 integration test (#3383) commit 5cfb907 Author: Tom Limoncelli <[email protected]> Date: Thu Jan 16 14:17:47 2025 -0500 TRANSIP: Pause when rate-limited (#3378) commit f666af8 Author: Tom Limoncelli <[email protected]> Date: Thu Jan 16 13:56:46 2025 -0500 GCLOUD: Re-try on 502 errors (#3376) commit 1a1a4bf Author: Tom Limoncelli <[email protected]> Date: Thu Jan 16 12:54:48 2025 -0500 INWX: Enable SRV to have "." target (#3380) commit 3556439 Author: Tom Limoncelli <[email protected]> Date: Thu Jan 16 10:58:11 2025 -0500 CLOUDFLAREAPI: No longer treat TTL=300 as special (#3368) Co-authored-by: Sukka <[email protected]> commit 89c65b6 Author: Tom Limoncelli <[email protected]> Date: Thu Jan 16 10:03:00 2025 -0500 INWX: Permit "." target for SRV records (#3377) commit fc2c506 Author: Tom Limoncelli <[email protected]> Date: Wed Jan 15 18:28:15 2025 -0500 CICD: Warn user if -provider does not match profiles.json:TYPE (#3375) commit 0d5b3c2 Author: Jakob Ackermann <[email protected]> Date: Wed Jan 15 22:43:24 2025 +0000 CLOUDFLARE: adopt ZoneCache (#3373) commit 2ef2362 Author: Jakob Ackermann <[email protected]> Date: Wed Jan 15 20:23:02 2025 +0000 HETZNER: adopt ZoneCache (#3372) commit ab00797 Author: Tom Hughes <[email protected]> Date: Wed Jan 15 02:07:19 2025 +0000 FEATURE: Extend PTR magic handling to support RFC4183 names (#3364) commit 5c9b170 Author: Jakob Ackermann <[email protected]> Date: Wed Jan 15 02:05:17 2025 +0000 FEAT: Add ZoneCache primitive (#3365)
1 parent eb0df5e commit e75c1ac

File tree

25 files changed

+633
-411
lines changed

25 files changed

+633
-411
lines changed

documentation/provider/cloudflareapi.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,16 +404,15 @@ When `-cfworkers=false` is set, tests related to Workers are skipped. The Accou
404404

405405
Cloudflare plays tricks with TTLs. Cloudflare uses "1" to mean "auto-ttl";
406406
which as far as we can tell means 300 seconds (5 minutes) with the option that
407-
CloudFlare may dynamically adjust the actual TTL. In the Cloudflare API,
408-
setting the TTL to 300 results in the TTL being set to 1.
407+
CloudFlare may dynamically adjust the actual TTL.
409408

410409
If the TTL isn't set to 1, Cloudflare has a minimum of 1 minutes.
411410

412411
A TTL of 0 tells DNSControl to use the default TTL for that provider, which is 1.
413412

414413
In summary:
415-
* TTL of 0, 1 and 300 are all the same ("auto TTL").
414+
* TTL of 0 and 1 are the same ("auto TTL").
416415
* TTL of 2-60 are all the same as 60.
417-
* TTL of 61-299, and 301 to infinity are not magic.
416+
* TTL of 61 to infinity is not magic.
418417

419418
Some of this is documented on the Cloudflare website's [Time to Live (TTL)](https://developers.cloudflare.com/dns/manage-dns-records/reference/ttl/) page.

documentation/provider/cnr.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ Example:
1919
"apilogin": "your-cnr-account-id",
2020
"apipassword": "your-cnr-account-password",
2121
"apientity": "LIVE", // for the LIVE system; use "OTE" for the OT&E system
22-
"debugmode": "0", // set it to "1" to get debug output of the communication with our Backend System API
22+
// --- debugmode ---
23+
// "0" -> turned off (default)
24+
// "1" -> turned on, basic logging of the changes reflected as API command parameters for the CNR API
25+
// "2" -> turned on, most verbose level - showing the detailed CNR API communication
26+
"debugmode": "0"
2327
}
2428
}
2529
```
@@ -46,23 +50,27 @@ Here a working example for our OT&E System:
4650
{% endhint %}
4751

4852
With the above CentralNic Reseller entry in `creds.json`, you can run the
49-
integration tests as follows:
53+
integration tests or by specifying the data per environment vars as follows:
5054

51-
```shell
52-
dnscontrol get-zones --format=nameonly cnr CNR all
53-
```
5455
```shell
5556
# Review the output. Pick one domain and set CNR_DOMAIN.
5657
export CNR_DOMAIN=yodream.com # Pick a domain name.
5758
export CNR_ENTITY=OTE
5859
export CNR_UID=test.user
5960
export CNR_PW=test.passw0rd
61+
export CNR_DEBUGMODE=2
6062
cd integrationTest # NOTE: Not needed if already in that subdirectory
6163
go test -v -verbose -profile CNR
6264
```
6365

6466
## Usage
6567

68+
Fetch a list of all DNSZones:
69+
70+
```shell
71+
dnscontrol get-zones --format=nameonly cnr CNR all
72+
```
73+
6674
Here's an example DNS Configuration `dnsconfig.js` using our provider module.
6775
Even though it shows how you use us as Domain Registrar AND DNS Provider, we don't force you to do that.
6876
You are free to decide if you want to use both of our provider technology or just one of them.

go.mod

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ go 1.23.0
44

55
retract v4.8.0
66

7-
require google.golang.org/protobuf v1.35.2 // indirect
7+
require google.golang.org/protobuf v1.36.2 // indirect
88

9-
require golang.org/x/net v0.33.0
9+
require golang.org/x/net v0.34.0
1010

1111
require (
12-
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.0
12+
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.1
1313
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dns/armdns v1.2.0
1414
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns v1.3.0
1515
github.com/Azure/go-autorest/autorest/to v0.4.0
@@ -18,16 +18,16 @@ require (
1818
github.com/TomOnTime/utfutil v0.0.0-20230223141146-125e65197b36
1919
github.com/akamai/AkamaiOPEN-edgegrid-golang v1.2.2
2020
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883
21-
github.com/aws/aws-sdk-go-v2 v1.32.7
22-
github.com/aws/aws-sdk-go-v2/config v1.28.7
23-
github.com/aws/aws-sdk-go-v2/credentials v1.17.48
24-
github.com/aws/aws-sdk-go-v2/service/route53 v1.46.4
25-
github.com/aws/aws-sdk-go-v2/service/route53domains v1.28.2
21+
github.com/aws/aws-sdk-go-v2 v1.33.0
22+
github.com/aws/aws-sdk-go-v2/config v1.29.1
23+
github.com/aws/aws-sdk-go-v2/credentials v1.17.54
24+
github.com/aws/aws-sdk-go-v2/service/route53 v1.48.2
25+
github.com/aws/aws-sdk-go-v2/service/route53domains v1.28.5
2626
github.com/babolivier/go-doh-client v0.0.0-20201028162107-a76cff4cb8b6
2727
github.com/billputer/go-namecheap v0.0.0-20210108011502-994a912fb7f9
2828
github.com/centralnicgroup-opensource/rtldev-middleware-go-sdk/v4 v4.0.7
29-
github.com/cloudflare/cloudflare-go v0.113.0
30-
github.com/digitalocean/godo v1.132.0
29+
github.com/cloudflare/cloudflare-go v0.114.0
30+
github.com/digitalocean/godo v1.134.0
3131
github.com/ditashi/jsbeautifier-go v0.0.0-20141206144643-2520a8026a9c
3232
github.com/dnsimple/dnsimple-go v1.7.0
3333
github.com/exoscale/egoscale v0.102.4
@@ -51,51 +51,51 @@ require (
5151
github.com/transip/gotransip/v6 v6.26.0
5252
github.com/urfave/cli/v2 v2.27.5
5353
github.com/xddxdd/ottoext v0.0.0-20221109171055-210517fa4419
54-
golang.org/x/crypto v0.31.0 // indirect
54+
golang.org/x/crypto v0.32.0 // indirect
5555
golang.org/x/oauth2 v0.25.0
56-
google.golang.org/api v0.214.0
56+
google.golang.org/api v0.217.0
5757
gopkg.in/ns1/ns1-go.v2 v2.13.0
5858
)
5959

6060
require (
61-
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0
61+
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.0
6262
github.com/G-Core/gcore-dns-sdk-go v0.2.9
63-
github.com/centralnicgroup-opensource/rtldev-middleware-go-sdk/v5 v5.0.4
63+
github.com/centralnicgroup-opensource/rtldev-middleware-go-sdk/v5 v5.0.6
6464
github.com/containrrr/shoutrrr v0.8.0
6565
github.com/fatih/color v1.18.0
6666
github.com/fbiville/markdown-table-formatter v0.3.0
6767
github.com/go-acme/lego/v4 v4.21.0
6868
github.com/google/go-cmp v0.6.0
6969
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
70-
github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.1.130
70+
github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.1.132
7171
github.com/juju/errors v1.0.0
7272
github.com/kylelemons/godebug v1.1.0
7373
github.com/mattn/go-isatty v0.0.20
74-
github.com/oracle/oci-go-sdk/v65 v65.81.1
74+
github.com/oracle/oci-go-sdk/v65 v65.81.3
7575
github.com/vultr/govultr/v2 v2.17.2
76-
golang.org/x/exp v0.0.0-20250103183323-7d7fa50e5329
76+
golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8
7777
golang.org/x/text v0.21.0
7878
golang.org/x/time v0.9.0
7979
gopkg.in/yaml.v3 v3.0.1
8080
)
8181

8282
require (
83-
cloud.google.com/go/auth v0.13.0 // indirect
84-
cloud.google.com/go/auth/oauth2adapt v0.2.6 // indirect
83+
cloud.google.com/go/auth v0.14.0 // indirect
84+
cloud.google.com/go/auth/oauth2adapt v0.2.7 // indirect
8585
cloud.google.com/go/compute/metadata v0.6.0 // indirect
8686
github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect
8787
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
88-
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirect
88+
github.com/AzureAD/microsoft-authentication-library-for-go v1.3.2 // indirect
8989
github.com/andybalholm/cascadia v1.3.3 // indirect
90-
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.22 // indirect
91-
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.26 // indirect
92-
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.26 // indirect
90+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.24 // indirect
91+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.28 // indirect
92+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.28 // indirect
9393
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect
9494
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect
95-
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.7 // indirect
96-
github.com/aws/aws-sdk-go-v2/service/sso v1.24.8 // indirect
97-
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.7 // indirect
98-
github.com/aws/aws-sdk-go-v2/service/sts v1.33.3 // indirect
95+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.9 // indirect
96+
github.com/aws/aws-sdk-go-v2/service/sso v1.24.11 // indirect
97+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.10 // indirect
98+
github.com/aws/aws-sdk-go-v2/service/sts v1.33.9 // indirect
9999
github.com/aws/smithy-go v1.22.1 // indirect
100100
github.com/boombuler/barcode v1.0.1 // indirect
101101
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
@@ -113,10 +113,10 @@ require (
113113
github.com/gofrs/uuid v4.4.0+incompatible // indirect
114114
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
115115
github.com/google/go-querystring v1.1.0 // indirect
116-
github.com/google/s2a-go v0.1.8 // indirect
116+
github.com/google/s2a-go v0.1.9 // indirect
117117
github.com/google/uuid v1.6.0 // indirect
118118
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
119-
github.com/googleapis/gax-go/v2 v2.14.0 // indirect
119+
github.com/googleapis/gax-go/v2 v2.14.1 // indirect
120120
github.com/gopherjs/gopherjs v1.17.2 // indirect
121121
github.com/hashicorp/errwrap v1.1.0 // indirect
122122
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
@@ -152,15 +152,15 @@ require (
152152
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
153153
go.mongodb.org/mongo-driver v1.12.0 // indirect
154154
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 // indirect
155-
go.opentelemetry.io/otel v1.29.0 // indirect
156-
go.opentelemetry.io/otel/metric v1.29.0 // indirect
157-
go.opentelemetry.io/otel/trace v1.29.0 // indirect
155+
go.opentelemetry.io/otel v1.31.0 // indirect
156+
go.opentelemetry.io/otel/metric v1.31.0 // indirect
157+
go.opentelemetry.io/otel/trace v1.31.0 // indirect
158158
golang.org/x/mod v0.22.0 // indirect
159159
golang.org/x/sync v0.10.0 // indirect
160-
golang.org/x/sys v0.28.0 // indirect
161-
golang.org/x/tools v0.28.0 // indirect
162-
google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 // indirect
163-
google.golang.org/grpc v1.67.1 // indirect
160+
golang.org/x/sys v0.29.0 // indirect
161+
golang.org/x/tools v0.29.0 // indirect
162+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250106144421-5f5ef82da422 // indirect
163+
google.golang.org/grpc v1.69.4 // indirect
164164
gopkg.in/ini.v1 v1.67.0 // indirect
165165
gopkg.in/sourcemap.v1 v1.0.5 // indirect
166166
moul.io/http2curl v1.0.0 // indirect

0 commit comments

Comments
 (0)