Skip to content
AnchrasDocumentation
Browse documentation

Integrations / User guide

DNS and domains

Available

Hetzner Cloud DNS

Manage primary DNS zones and record sets with a Hetzner Cloud project token.

On this page

Manage primary DNS zones in a Hetzner Cloud project with hetzner-cloud-dns. This driver uses api.hetzner.cloud/v1 and a Cloud project bearer token. The classic DNS driver uses a separate API and incompatible credentials; selecting a driver does not migrate zones or registrar delegation.

Connect a project

Create a read/write API token in the Hetzner Cloud project containing the intended zones. Store a protected Anchras JSON secret containing {"api_token":"YOUR_PROJECT_TOKEN"}. In Integrations, select Hetzner Cloud DNS, choose that secret, validate the configuration and save the DNS provider selection. Configuration validation checks the secret format; successful provider operations establish token permissions.

The existing API and CLI support the same setup:

sh
anchras integrations providers set --kind dns --implementation hetzner-cloud-dns --config-secret-id SECRET_UUID --validate-only
anchras integrations providers set --kind dns --implementation hetzner-cloud-dns --config-secret-id SECRET_UUID

Managed Cloud DNS zones use the organization's selected DNS secret. Create a verified domain with provider_kind=hetzner-cloud-dns and the standard profile, using Public DNS or anchras dns zone create --provider hetzner-cloud-dns --profile standard with the required domain, connection and verification arguments. The connection field remains advisory for managed zones under the existing provider-selection policy.

For a BYO DNS binding, select the exact active Hetzner cloud account that owns the zone. Anchras opens that account's protected Cloud credentials and selects hetzner-cloud-dns, independently of the organization's managed-zone selection. Credentials from another account or organization are never a fallback. A classic DNS token must be configured explicitly with hetzner-dns; it cannot be used as a Hetzner Cloud account credential.

Availability and limits

Supported record types are A, AAAA, CNAME, TXT, MX, SRV, CAA and NS. Use the complete desired value list when updating a record set. Removing one value leaves the remaining desired values; deleting the record deletes that whole name/type record set. Other names and types are preserved. Provider record IDs are opaque identifiers for whole record sets, such as www/A.

Record names may be relative, @ for the apex, or fully qualified within the zone. Domain targets in CNAME, MX, SRV and NS values use DNS presentation syntax: end an absolute target with a dot to avoid the provider treating it as relative. TXT values may be plain text or quoted DNS presentation; Anchras handles quotes, escapes and long-value chunking.

TTL must be at least 60 seconds; zero inherits the zone default. Updates can restore inheritance. A record set supports at most 50 values, each within the provider's 4096-character presentation limit. This driver supports primary public zones only. Hetzner Cloud hosts only registrable domains: a zone for a subdomain such as dev.example.com is refused as invalid input, so delegate a subdomain with an NS record set in the parent zone instead. Hetzner also refuses NS record sets below the apex that name its own nameservers; delegate to the child's own nameservers. It does not advertise DNSSEC, secondary zone transfers, private zones, provider-specific extensions or the global anycast profile.

Verify and operate

For an authorized disposable zone, create or adopt it, set a two-value TXT record, change the values and TTL, and compare the provider observation and authoritative DNS response. Delete the temporary record and zone, then verify provider-confirmed absence. Registrar delegation is required for public resolution, and recursive caches may retain values until TTL expiry.

Troubleshooting

Provider changes wait for action completion within a bounded request. Rate limits, provider failures and interrupted or lost responses remain errors that reconciliation can retry after observing current state. The adapter uses the existing zone or record set on retry; updates do not delete and recreate a record set. Permission errors require fixing the project's token before retrying. Error messages exclude provider response bodies and record values.

The adapter has automated HTTP fixture coverage and a live lifecycle receipt from a disposable Hetzner Cloud project (2026-11-07): zone adoption, delegation, multi-value edits, TTL changes and inheritance, authoritative observations, deletion and absence, both through the driver and through a connected Hetzner cloud account. Creating and deleting a fresh zone is covered by fixtures only, because it needs a registrable domain that may be deleted.

References

CLI commands

Install and authenticate using the CLI guide. The table describes command families; required arguments are shown in their usage output.

CommandPurpose
anchras integrations providers set --kind <kind> --implementation <name> [--config-secret-id <uuid>]CLI usage. Replace angle-bracket placeholders with your values; square brackets indicate optional arguments.

API reference

Browse procedures, request and response types, and download the complete OpenAPI contract.