diff --git a/dnsapi2.md b/dnsapi2.md index be707e8..8fd210c 100644 --- a/dnsapi2.md +++ b/dnsapi2.md @@ -109,6 +109,7 @@ - [185. Use WEXBO DNS API](#dns_wexbo) - [186. Use Wärner Technologie Services DNS-API](#dns_wts) - [187. Use RESTENA DNS API](#dns_restena) +- [188. Use Hetzner Cloud DNS API](#dns_hetznercloud) - [Use custom API](#dns_myapi) - [Use lexicon DNS API](#dns_lexicon) @@ -2784,6 +2785,31 @@ acme.sh --issue -d example.lu --dns dns_restena Report any bugs or issues [here](https://github.com/acmesh-official/acme.sh/issues/6532) + + +## 188. Use Hetzner Cloud DNS API + +Provider for the Hetzner **Cloud** DNS API (not the legacy/console API). + +**Environment variables** + +* `HETZNER_TOKEN` *(required)* — Personal Access Token for the Cloud DNS API (**read & write**). +* `HETZNER_TTL` *(optional)* — TTL in seconds for TXT RRsets (default **120**). +* `HETZNER_API` *(optional)* — Override API base URL (default `https://api.hetzner.cloud/v1`). + +**Example** + +```bash +export HETZNER_TOKEN="your_token_here" +# optional: +# export HETZNER_TTL=120 +# export HETZNER_API="https://api.hetzner.cloud/v1" + +acme.sh --issue --dns dns_hetznercloud -d test.example.com +``` + +Report any bugs or issues [here](https://github.com/acmesh-official/acme.sh/issues/6564) + ## Use custom API