<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Try restarting the powerdns or maybe start it in debug mode so that you can see why is not listening.<br class=""><div><blockquote type="cite" class=""><div class="">On Mar 5, 2015, at 12:42 PM, Melvin Mughal <<a href="mailto:melvin@mughal.nu" class="">melvin@mughal.nu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Sorry about being unspecific. This is the uncut version:<br class=""><div class=""><br class=""></div><div class=""><p class=""><span class="">curl -v 'X-API-Key: otto' <a href="http://188.226.135.47:8081/servers/localhost/zones" target="_blank" class="">http://188.226.135.47:8081/servers/localhost/zones</a> </span></p><p class=""><span class="">* Rebuilt URL to: X-API-Key: otto/</span></p><p class=""><span class="">* Hostname was NOT found in DNS cache</span></p><p class=""><span class="">* Could not resolve host: X-API-Key</span></p><p class=""><span class="">* Closing connection 0</span></p><p class=""><span class="">curl: (6) Could not resolve host: X-API-Key</span></p><p class=""><span class="">* Hostname was NOT found in DNS cache</span></p><p class=""><span class="">* Trying 188.226.135.47...</span></p><p class=""><span class="">* connect to 188.226.135.47 port 8081 failed: Connection refused</span></p><p class=""><span class="">* Failed to connect to 188.226.135.47 port 8081: Connection refused</span></p><p class=""><span class="">* Closing connection 1</span></p><p class=""><span class="">curl: (7) Failed to connect to 188.226.135.47 port 8081: Connection refused</span></p><p class="">The main problem is that nothing is listening on 8081, but it's in the config. The firewall (Iptables) is not blocking anything at te moment. So it refuses because nothing is on the port. To be specific: I check the port with the command 'lsof -i -P | grep -i 8081'.</p><p class=""><br class=""></p></div><div class="gmail_extra"><div class="gmail_quote">2015-03-05 11:20 GMT+01:00 Christian Hofstaedtler <span dir="ltr" class=""><<a href="mailto:christian.hofstaedtler@deduktiva.com" target="_blank" class="">christian.hofstaedtler@deduktiva.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br class="">
<span class=""><br class="">
<br class="">
> On 05 Mar 2015, at 10:57, Melvin Mughal <<a href="mailto:melvin@mughal.nu" target="_blank" class="">melvin@mughal.nu</a>> wrote:<br class="">
><br class="">
<br class="">
> The curl commands I run form my own system to the server:<br class="">
><br class="">
><br class="">
> curl -s -H 'X-API-Key: otto' <a href="http://xxx.xx.xx.xx:8081/servers/localhost" target="_blank" class="">http://xxx.xx.xx.xx:8081/servers/localhost</a><br class="">
><br class="">
><br class="">
> curl -s -H 'X-API-Key: otto' <a href="http://xxx.xx.xx.xx:8081/servers/localhost/zones" target="_blank" class="">http://xxx.xx.xx.xx:8081/servers/localhost/zones</a><br class="">
><br class="">
> And it just returns nothing. So the crud in the API key wasn't an issue I guess. No errors and also no result. But there is a zone file in there, so it should be returning something. I restarted pdns a million times and still no 8081 port listening with this config.<br class="">
<br class="">
</span>You need to stop being unspecific, and you need to stop using “-s” for curl — “nothing” is not a helpful description of an outcome.<br class="">
<br class="">
Start curl with -v and report back both the exact, unmodified curl command line and the complete output curl produced. You do not need to mask your IP addresses, nobody’s going to bother, esp. if those are in an RFC1918 range anyway.<br class="">
<span class=""><br class="">
<br class="">
> 2015-03-05 7:34 GMT+01:00 Jan-Piet Mens <<a href="mailto:jpmens.dns@gmail.com" target="_blank" class="">jpmens.dns@gmail.com</a>>:<br class="">
</span><div class=""><div class="">> Also show us the *exact* curl command you're using from the<br class="">
> command-line, and the API key (if you're using line 623) better be<br class="">
> protected from the shell. :)<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
</div></div><span class=""><font color="#888888" class="">--<br class="">
Christian Hofstaedtler / Deduktiva GmbH (FN 418592 b, HG Wien)<br class="">
<a href="http://www.deduktiva.com/" target="_blank" class="">www.deduktiva.com</a> / +43 1 353 1707<br class="">
<br class="">
<br class="">
<br class="">
</font></span></blockquote></div><br class=""></div></div>
_______________________________________________<br class="">Pdns-users mailing list<br class=""><a href="mailto:Pdns-users@mailman.powerdns.com" class="">Pdns-users@mailman.powerdns.com</a><br class="">http://mailman.powerdns.com/mailman/listinfo/pdns-users<br class=""></div></blockquote></div><br class=""></body></html>