[Pdns-users] API question

Volker Janzen volker at janzen.onl
Fri Aug 5 21:07:16 UTC 2016


Hi,

I tried to activate API in PowerDNS 4 because I want to try nsedit. nsedit complained about API not found.

I then tried to debug with the command line examples:

curl -H 'X-API-Key: Test' http://127.0.0.1:8081/api
[{"url": "/api/v1", "version": 1}]

curl -H 'X-API-Key: Test' http://127.0.0.1:8081/api/v1
Not Found

I'm using PowerDNS 4.0.1 Debian package from repo.powerdns.com

pdns.local.conf has been extended by:

api=yes
api-key=Test
api-logfile=/var/log/pdns.log
api-readonly=no

webserver=yes
webserver-address=127.0.0.1
webserver-allow-from=0.0.0.0/0,::/0
webserver-password=secret
webserver-port=8081

Can someone point me to the error?


Regards
    Volker



More information about the Pdns-users mailing list