<div dir="ltr">Sorry about being unspecific. This is the uncut version:<br><div><br></div><div>
<p><span>curl -v 'X-API-Key: otto' <a href="http://188.226.135.47:8081/servers/localhost/zones" target="_blank">http://188.226.135.47:8081/servers/localhost/zones</a> </span></p>
<p><span>* Rebuilt URL to: X-API-Key: otto/</span></p>
<p><span>* Hostname was NOT found in DNS cache</span></p>
<p><span>* Could not resolve host: X-API-Key</span></p>
<p><span>* Closing connection 0</span></p>
<p><span>curl: (6) Could not resolve host: X-API-Key</span></p>
<p><span>* Hostname was NOT found in DNS cache</span></p>
<p><span>* Trying 188.226.135.47...</span></p>
<p><span>* connect to 188.226.135.47 port 8081 failed: Connection refused</span></p>
<p><span>* Failed to connect to 188.226.135.47 port 8081: Connection refused</span></p>
<p><span>* Closing connection 1</span></p>
<p><span>curl: (7) Failed to connect to 188.226.135.47 port 8081: Connection refused</span></p><p>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><br></p></div><div class="gmail_extra"><div class="gmail_quote">2015-03-05 11:20 GMT+01:00 Christian Hofstaedtler <span dir="ltr"><<a href="mailto:christian.hofstaedtler@deduktiva.com" target="_blank">christian.hofstaedtler@deduktiva.com</a>></span>:<br><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>
<span><br>
<br>
> On 05 Mar 2015, at 10:57, Melvin Mughal <<a href="mailto:melvin@mughal.nu" target="_blank">melvin@mughal.nu</a>> wrote:<br>
><br>
<br>
> The curl commands I run form my own system to the server:<br>
><br>
><br>
> curl -s -H 'X-API-Key: otto' <a href="http://xxx.xx.xx.xx:8081/servers/localhost" target="_blank">http://xxx.xx.xx.xx:8081/servers/localhost</a><br>
><br>
><br>
> curl -s -H 'X-API-Key: otto' <a href="http://xxx.xx.xx.xx:8081/servers/localhost/zones" target="_blank">http://xxx.xx.xx.xx:8081/servers/localhost/zones</a><br>
><br>
> 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>
<br>
</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>
<br>
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>
<span><br>
<br>
> 2015-03-05 7:34 GMT+01:00 Jan-Piet Mens <<a href="mailto:jpmens.dns@gmail.com" target="_blank">jpmens.dns@gmail.com</a>>:<br>
</span><div><div>> Also show us the *exact* curl command you're using from the<br>
> command-line, and the API key (if you're using line 623) better be<br>
> protected from the shell. :)<br>
<br>
<br>
<br>
<br>
</div></div><span><font color="#888888">--<br>
Christian Hofstaedtler / Deduktiva GmbH (FN 418592 b, HG Wien)<br>
<a href="http://www.deduktiva.com" target="_blank">www.deduktiva.com</a> / +43 1 353 1707<br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div></div>