A simple DNS hook that lets Dehydrated talk to the PowerDNS API.
Add the settings for your PowerDNS API to
config file next to
HOST=ns0.example.com PORT=8081 # Optional. Defaults to 8081 KEY=secret # API key SERVER=localhost # Optional. Server for the API to use, usually `localhost` VERSION=1 # Optional. API version, 0 for anything under PowerDNS 4 WAIT=300 # Optional. Delay for when slaves are slow
Configure it as a DNS hook, by adding the following to your
CHALLENGETYPE="dns-01" HOOK="./pdns_api.sh" HOOK_CHAIN="yes"
Nested zones and subdomains are supported.
These zones should be detected automatically,
but can be overridden by creating a file called
/usr/local/etc/letsencrypt.sh/ or next to
pdns_api.sh with the zones:
test.example.domain.tld example.domain.tld test.domain.tld
These zones can be added in any order.