[Pdns-users] pdns server api access leads to "Internal Server Error"

Tobi <jahlives@gmx.ch> jahlives at gmx.ch
Tue May 7 14:49:57 UTC 2019


Hi list

I have an application which access the pdns server via the api
interface. I'm using pdns 4.1.8 on a CentOS 7 with latest updates. pdns
runs with mysql backend on mariadb.

All except one api query work as expected but when I fire such a query

curl -X GET -H 'X-API-Key: MY_API'
http://127.0.0.1:8081/api/v1/servers/localhost/zones/mydomain.tld

I get a http 500 "Internal Server Error" message. Like said it's the
only query that fails. Any other for example

http://127.0.0.1:8081/api/v1/servers/localhost/zones

lists the zones available without any problem.

The documentation on
https://doc.powerdns.com/authoritative/http-api/zone.html specifies this
endpoint as valid

> GET /servers/{server_id}/zones/{zone_id}

Anyone an idea what goes wrong here?
Can I somehow enable debug of the api part of pdns?

Thanks for any idea

tobi


More information about the Pdns-users mailing list