[Pdns-users] API question

Volker Janzen volker at janzen.onl
Sat Aug 6 09:58:13 UTC 2016


Hi,

that's wired. I changed the API key to a shorter one and this solved the initial problem with nsedit. Then I had problems with pdns was unable to write to logfile (create/chown solved this).

Now I see that some zones have a serial of 0 (zero). When I click these zones I get a 500 internal server error back. All other zones work. Any ideas what could cause this?


Regards
    Volker


Am 06.08.2016 um 00:39 schrieb Theodore Baschak <theodore at ciscodude.net<mailto:theodore at ciscodude.net>>:

I'm using the API w/ 4.0.1 (debian package also from repo.powerdns.com<http://repo.powerdns.com>) w/ basically the same config.
/api/v1 also returns "Not Found" for me.
However the API works (other than that I guess).
I used nsedit with it the other day, and also PowerDNS-Admin via the API.

Theodore Baschak - AS395089 - Hextet Systems
https://ciscodude.net/ - https://hextet.systems/
https://theodorebaschak.com/ - http://mbix.ca/

On Aug 5, 2016, at 4:07 PM, Volker Janzen <volker at janzen.onl<mailto:volker at janzen.onl>> wrote:

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<http://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

_______________________________________________
Pdns-users mailing list
Pdns-users at mailman.powerdns.com<mailto:Pdns-users at mailman.powerdns.com>
https://mailman.powerdns.com/mailman/listinfo/pdns-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20160806/ccce036b/attachment-0001.html>


More information about the Pdns-users mailing list