pdns.conf:
Разрешите хост веб-интерфейса
Если PowerDNS Web UI работает на другом хосте или в другом контейнере, добавьте этот адрес или сеть вwebserver-allow-from.
Пример для сети Docker:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Включение HTTP API PowerDNS Authoritative для использования с 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.
Пример для сети Docker:
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