docs/content/dns/zz_gen_pdns.md
Configuration for PowerDNS.
<!--more-->pdnsHere is an example bash command using the PowerDNS provider:
PDNS_API_URL=http://pdns-server:80/ \
PDNS_API_KEY=xxxx \
lego --dns pdns -d '*.example.com' -d example.com run
| Environment Variable Name | Description |
|---|---|
PDNS_API_KEY | API key |
PDNS_API_URL | API URL |
The environment variable names can be suffixed by _FILE to reference a file instead of a value.
More information [here]({{% ref "dns#configuration-and-credentials" %}}).
| Environment Variable Name | Description |
|---|---|
PDNS_API_VERSION | Skip API version autodetection and use the provided version number. |
PDNS_HTTP_TIMEOUT | API request timeout in seconds (Default: 30) |
PDNS_POLLING_INTERVAL | Time between DNS propagation check in seconds (Default: 2) |
PDNS_PROPAGATION_TIMEOUT | Maximum waiting time for DNS propagation in seconds (Default: 120) |
PDNS_SERVER_NAME | Name of the server in the URL, 'localhost' by default |
PDNS_TTL | The TTL of the TXT record used for the DNS challenge in seconds (Default: 120) |
The environment variable names can be suffixed by _FILE to reference a file instead of a value.
More information [here]({{% ref "dns#configuration-and-credentials" %}}).
Tested and confirmed to work with PowerDNS authoritative server 3.4.8 and 4.0.1. Refer to PowerDNS documentation instructions on how to enable the built-in API interface.
PowerDNS Notes:
_acme-challenge record is added/modified via the API, set SOA-EDIT-API to INCEPTION-INCREMENT for the zone in the domainmetadata tablePDNS_API_VERSION.