v4.15.0
Greetings and happy holidays, DNSControl fans!
Santa (or the super-natural gift-delivery being of your choice) has graced us with THREE big, new, exciting, features, plus a ton of other fixes and improvements.
BIG NEWS # 1: The last line of a D()
statement can now have a comma!
In the past, leaving off the last comma would give an error:
D("example.com", REG_NONE, DnsProvider(DSP_EXAMPLE),
A("test", "1.2.3.4") <<< look, Ma! No comma!
END);
### version 4.14.x:
$ dnscontrol check
executing dnsconfig.js: (anonymous): Line 183:25 Unexpected token )
### version 4.15.0:
$ dnscontrol check
No errors.
Best of all we got this feature simply by upgrading to the newest version of the JavaScript interpreter we use (https://github.com/robertkrimen/otto). In the latest release @linuxerwang (who has probably never heard of our project) submitted this enhancement in robertkrimen/otto#520 and we all benefit.
This affects all kinds of JavaScript lists, not just D()
statements.
Thanks, Santa! .... I mean @linuxerwang!
BIG NEWS # 2: The default for --cmode
is now concurrent
.
This means your preview
will run many times faster because all the domains are collected concurrently. Some people have reported runtimes are reduced 50-75%.
This change was announced months ago in #3142 plus dnscontrol
printed warnings since v4.14.0.
The following providers added concurrency support in this release: CLOUDNS, CNR, DIGITALOCEAN, GANDI_V5, HETZNER, NAMECHEAP, NETLIFY
Providers that already support concurrency include: AZURE_DNS, CLOUDFLAREAPI, CSCGLOBAL, DESEC, GCLOUD, NS1, ROUTE53, TRANSIP.
This code is a bit new. If you find a bug, use --cmode=none
to disable concurrency. (and file a bug report!)
BIG NEWS # 3: Notifications can now be sent using Shouterr
Notifications are now handled by the Shouterr package. Shouterr supports every chat system I've heard of, plus plenty of other systems. In the future Shouterr will become the standard way to send notifications and other methods will be deprecated. How to set up notifications is documented at https://docs.dnscontrol.org/advanced-features/notifications.
Other new features worth mentioning:
- NEW PROVIDER: CentralNic Reseller (CNR) - formerly RRPProxy (#3203) (@AsifNawaz-cnic)
- PORKBUN: handles retries/ratelimits better, and now also supports CAA.
- The
get-zones
subcommand is more reliable, which probably also makespreview
more reliable.
Thanks to everyone for their contributions! This is a community-driven project and we couldn't do it without all your PRs, reviews, and other support!
Stay safe! See you in the new year!
--Tom
Here's the details:
Changelog
Major features:
- b2ee265: NEW PROVIDER: CentralNic Reseller (CNR) - formerly RRPProxy (#3203) (@AsifNawaz-cnic)
Provider-specific changes:
- 9d42930: CLOUDNS: enable concurrent access (#3232) (@hmoffatt)
- 0b85cf2: CNR Provider: Review CI / Docs / Capabilities (add NAPTR, SSHFP) (#3241) (@tlimoncelli)
- 006a434: CNR: Disable pager101 integration test (#3226) (@tlimoncelli)
- 2eeeb76: DIGITALOCEAN: Enable cmode concurrent (#3207) (@willpower232)
- 52c9bad: GANDI: Enable cmode concurrent (#3201) (@tlimoncelli)
- 5d625e8: HETZNER: enable concurrency capability (#3234) (@das7pad)
- 87fcb27: NAMECHEAP: Enable cmode concurrent (#3202) (@tlimoncelli)
- d29c1cf: NETLIFY: Enable cmode concurrent (#3205) (@willpower232)
- de6afe2: PORKBUN: increase req interval and retry on 503 (#3228) (@imlonghao)
- 5d8e711: PORKBUN: support CAA (#3200) (@imlonghao)
Documentation:
CI/CD:
- 25652e0: Build(deps): Bump actions/cache from 4.1.2 to 4.2.0 (#3229) (@dependabot[bot])
- cc0058b: Build(deps): Bump alpine from
beefdbd
to1e42bbe
(#3208) (@dependabot[bot]) - be48b6e: Build(deps): Bump github.com/oracle/oci-go-sdk/v65 from 65.78.0 to 65.79.0 (#3210) (@dependabot[bot])
- 701cc69: Build(deps): Bump golang.org/x/crypto from 0.30.0 to 0.31.0 (#3240) (@dependabot[bot])
Dependencies:
- 52f6242: CHORE: Update deps (#3230) (@tlimoncelli)
- 9588a91: CHORE: Update deps (#3237) (@tlimoncelli)
- bbaf083: update deps (#3214) (@tlimoncelli)
Other changes and improvements:
- e774e2d: Add notifications with Shoutrr (#3215) (@hmoffatt)
- 9bb9f16: BUG: Errors while listing zones do not propagate through the system (#2474) (#3216) (@hmoffatt)
- 9df5a25: CHORE: Linting corrections (#3236) (@tlimoncelli)
- 9357743: CHORE: Remediate staticcheck warnings (#3231) (@tlimoncelli)
- e2cf886: DEFAULT CHANGE: --cmode now defaults to concurrent (#3238) (@tlimoncelli)
Deprecation warnings
Warning
- REV() will switch from RFC2317 to RFC4183 in v5.0. This is a breaking change. Warnings are output if your configuration is affected. No date has been announced for v5.0. See https://docs.dnscontrol.org/language-reference/top-level-functions/revcompat
- MSDNS maintainer needed! Without a new volunteer, this DNS provider will lose support after April 2025. See #2878
- NAMEDOTCOM and SOFTLAYER need maintainers! These providers have no maintainer. Maintainers respond to PRs and fix bugs in a timely manner, and try to stay on top of protocol changes.
- get-certs/ACME support is frozen and will be removed without notice between now and July 2025. It has been unsupported since December 2022. If you don't use this feature, do not start. If you do use this feature, migrate ASAP. See discussion in issues/1400
Install
macOS and Linux
Install with Homebrew (recommended)
brew install dnscontrol
Using with Docker
You can use the Docker image from Docker hub or GitHub Container Registry.
docker run --rm -it -v "$(pwd):/dns" ghcr.io/stackexchange/dnscontrol preview
Anywhere else
Alternatively, you can install the latest binary (or the apt/rpm/deb/archlinux package) from this page.
Or, if you have Go installed, you can install the latest version of DNSControl with the following command:
go install github.com/StackExchange/dnscontrol/v4@main
Update
Update to the latest version depends on how you choose to install dnscontrol
on your machine.
Update with Homebrew
brew upgrade dnscontrol
Alternatively, you can grab the latest binary (or the apt/rpm/deb package) from this page.