<div dir="ltr">Followed the readme (<a href="https://doc.powerdns.com/md/httpapi/README/">https://doc.powerdns.com/md/httpapi/README/</a>). Added those three lines to the pdns.conf, to get the API working. When we try an API call, it gives:<div><br></div><div>
<p class=""><i><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"></i></p>
<p class=""><i><html><head></i></p>
<p class=""><i><title>404 Not Found</title></i></p>
<p class=""><i></head><body></i></p>
<p class=""><i><h1>Not Found</h1></i></p>
<p class=""><i><p>The requested URL /servers/localhost/zones was not found on this server.</p></i></p>
<p class=""><i><hr></i></p>
<p class=""><i><address>Apache/2.4.7 (Ubuntu) Server at <a href="http://ourhostname.com">ourhostname.com</a> Port 80</address></i></p>
<p class=""><i></body></html></i></p><p class=""><i><br></i></p><p class="">When we add the lines to specify on which address the webserver should be found, we get:</p><p class=""><br></p><p class="">curl --local-port 8081 -H 'X-API-Key: NwY>kpVMMuB8ib' <a href="http://ns3.undev.nl/servers/localhost/zones">http://ourhostname.com/servers/localhost/zones</a> ruby-2.1.1 [16:05]</p><p class="">
</p><p class="">curl: (45) bind failed with errno 48: Address already in use</p><p class=""><br></p><p class="">Anyone knows what's going wrong?</p></div></div>