dnscontrol/documentation/provider
Jakob Ackermann 1e67585e8f
HETZNER_V2: Add provider for Hetzner DNS API (#3837)
Closes https://github.com/StackExchange/dnscontrol/issues/3787

This PR is adding a `HETZNER_V2` provider for the "new" Hetzner DNS API.

Testing:
- The integration tests are passing.
- Manual testing:
  - `preview` (see diff for existing zone)
- `preview --populate-on-preview` (see full diff for newly created zone)
  - `push` (see full diff; no diff after push)
- `push` (see full diff; no diff after push to newly created zone --
i.e. single pass and done)

```js
var REG_NONE = NewRegistrar('none')
var DSP = NewDnsProvider('HETZNER_V2')

D('testing-2025-11-14-7.dev', REG_NONE, DnsProvider(DSP),
    A('@', '127.0.0.1')
)
```

<details>

```
# push for newly created zone
CONCURRENTLY checking for 1 zone(s)
SERIALLY checking for 0 zone(s)
Waiting for concurrent checking(s) to complete...DONE
******************** Domain: testing-2025-11-14-7.dev
1 correction (HETZNER_V2)
#1: Ensuring zone "testing-2025-11-14-7.dev" exists in "HETZNER_V2"
SUCCESS!
CONCURRENTLY gathering records of 1 zone(s)
SERIALLY gathering records of 0 zone(s)
Waiting for concurrent gathering(s) to complete...DONE
******************** Domain: testing-2025-11-14-7.dev
4 corrections (HETZNER_V2)
#1: ± MODIFY-TTL testing-2025-11-14-7.dev NS helium.ns.hetzner.de. ttl=(3600->300)
± MODIFY-TTL testing-2025-11-14-7.dev NS hydrogen.ns.hetzner.com. ttl=(3600->300)
± MODIFY-TTL testing-2025-11-14-7.dev NS oxygen.ns.hetzner.com. ttl=(3600->300)
SUCCESS!
#2: + CREATE testing-2025-11-14-7.dev A 127.0.0.1 ttl=300
SUCCESS!
Done. 5 corrections.
```
</details>

Feedback for @jooola and @LKaemmerling:
- The SDK was very useful in getting 80% there! Nice! 🎉 
- Footgun:
- The `result` values are not "up-to-date" after waiting for an
`Action`, e.g. `Zone.AuthoritativeNameservers.Assigned` is not set when
`Client.Zone.Create()` returns and the following "wait" will not update
it.
- Taking a step back here: Waiting for an `Action` with a separate SDK
call does not seem very natural to me. Does the SDK-user need to know
that you are processing operations asynchronous? (Which seems like an
implementation detail to me, something that the SDK could abstrct over.)
Can `Client.Zone.Create()` return the final `Zone` instead of the
intermediate result?
- Features missing compared to the DNS Console, in priority order:
- It is no longer possible to remove your provided name servers from the
root/apex. Use-case: dual-home/multi-home zone with fewer than three
servers from Hetzner. I'm operating one of these and cannot migrate over
until this is fixed.
- Performance regression due to lack of bulk create/modify. E.g. [one of
the test
suites](a71b89e5a2/integrationTest/integration_test.go (L619))
spends about 4.5 minutes on making creating 100 record-sets and then
another 4 minutes for deleting them in sequence again. With your async
API, these are `create 2*100 + delete 2*100 = 400` API calls.
Previously, these were `create 1 + delete 100 = 101` API calls. Are you
planning on adding batch processing again?
- Usability nits
- Compared to other record-set based APIs, upserts for record-sets are
missing. This applies to records of a record-set and the ttl of the
record-set (see separate SDK calls for the cases `diff2.CREATE` vs
`diff2.CHANGE` and two calls in `diff2.CHANGE` for updating the TTL vs
records).
- Some SDK methods return an `Action` (e.g. `Zone.ChangeRRSetTTL()`),
others wrap the `Action` in a struct (`Client.Zone.CreateRRSet()`) --
even when the struct has a single field (`ZoneRRSetDeleteResult`).

---------

Co-authored-by: "Jonas L." <jooola@users.noreply.github.com>
Co-authored-by: "Lukas Kämmerling" <LKaemmerling@users.noreply.github.com>
Co-authored-by: Tom Limoncelli <6293917+tlimoncelli@users.noreply.github.com>
2025-11-30 09:14:54 -05:00
..
adguardhome.md DOCS: AdGuardHome feedback (#3701) 2025-08-09 10:36:38 -04:00
akamaiedgedns.md AKAMAIEDGEDNS: Add ALIAS and AKAMAITLC support to the Akamai Edge DNS provider (#3836) 2025-11-14 09:48:42 -05:00
autodns.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
axfrddns.md DOCS: AXFR+DDNS uses TCP by default (#3713) 2025-08-28 12:27:58 -04:00
azure_dns.md FEATURE: Enable OIDC support for Azure DNS provider (#3398) 2025-01-30 13:00:02 -05:00
azure_private_dns.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
bind.md BUGFIX: IDN support is broken for domain names (#3845) 2025-11-29 12:17:44 -05:00
bunny_dns.md DOCS: Fix many minor typos (#3752) 2025-09-02 11:00:25 -04:00
cloudflareapi.md CLOUDFLAREAPI: Enable inserting DS records at the domain apex (even if they may be rejected) (#3571) 2025-05-12 17:14:32 -04:00
cloudns.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
cnr.md CNR: Update docs with proper Nameserver example (#3592) 2025-06-01 09:04:37 -04:00
cscglobal.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
desec.md DESEC: improve formatting of DS records on domain creation (#3766) 2025-09-12 11:04:01 -04:00
digitalocean.md DIGITALOCEAN: DOCS: update instructions for creating API token (#3617) 2025-06-12 09:27:31 -04:00
dnsimple.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
dnsmadeeasy.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
dnsoverhttps.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
domainnameshop.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
dynadot.md DOCS: Simplified the provider URLs (providers) (#2914) 2024-04-18 09:43:50 -04:00
easyname.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
exoscale.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
fortigate.md FORTIGATE: Add NS and MX record support (#3671) 2025-07-18 10:22:37 -04:00
gandi_v5.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
gcloud.md DOCS: Fix many minor typos (#3752) 2025-09-02 11:00:25 -04:00
gcore.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
hedns.md DOCS: Fix many minor typos (#3752) 2025-09-02 11:00:25 -04:00
hetzner.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
hetzner_v2.md HETZNER_V2: Add provider for Hetzner DNS API (#3837) 2025-11-30 09:14:54 -05:00
hexonet.md CHORE: Rename -provider to -profile within the documentation. 2025-01-06 09:38:39 -05:00
hostingde.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
huaweicloud.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
index.md HETZNER_V2: Add provider for Hetzner DNS API (#3837) 2025-11-30 09:14:54 -05:00
internetbs.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
inwx.md INWX: Let the API (not DNSControl) enforce the RFC 7505 prohibition of mixed regular/null MX records (#3805) 2025-11-03 11:44:40 -05:00
joker.md Joker: Implement DNS Provider (#3661) 2025-08-04 16:37:20 -04:00
linode.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
loopia.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
luadns.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
mythicbeasts.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
namecheap.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
namedotcom.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
netcup.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
netlify.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
ns1.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
opensrs.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
oracle.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
ovh.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
packetframe.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
porkbun.md PORKBUN: Configurable retry parameters (#3746) 2025-08-28 12:24:40 -04:00
powerdns.md POWERDNS: Split horizon feature now enabled by flag (#3829) 2025-11-04 09:15:24 -05:00
realtimeregister.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
route53.md feat(Route53): Add support for RoleArn and ExternalId #3816 (#3817) 2025-11-03 11:38:13 -05:00
rwth.md DOCS: RWTH provider is only available via the intranet (#3497) (#3623) 2025-06-16 14:25:35 -06:00
sakuracloud.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
softlayer.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
transip.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00
vultr.md DOCS: Trailing commas are no longer an issue (#3248) 2024-12-17 07:46:37 -05:00