pdns.conf:
Allow the web UI host
If PowerDNS Web UI runs on another host or in another container, include that address or network inwebserver-allow-from.
Example for a Docker network:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Enable the PowerDNS Authoritative HTTP API for use with PowerDNS Web UI.
pdns.conf:
webserver=yes
webserver-port=8081
webserver-allow-from=127.0.0.1,::1
api=yes
api-key=replace-with-a-long-secret
webserver-allow-from.
Example for a Docker network:
webserver-allow-from=127.0.0.1,172.18.0.0/16
curl -H 'X-API-Key: replace-with-a-long-secret' \
http://localhost:8081/api/v1/servers/localhost
PDNS_API_URL=http://localhost:8081
PDNS_API_KEY=replace-with-a-long-secret
PDNS_SERVER_ID=localhost