<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="">As far as I remember this was introduced in 3.4 version of pdns-server <div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 5, 2015, at 1:20 PM, Keresztes Péter-Zoltán <<a href="mailto:zozo@z0z0.tk" class="">zozo@z0z0.tk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">What is the version of pdns you are running?<div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Mar 5, 2015, at 1:11 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=""><div class=""><i class="">sudo /etc/init.d/pdns monitor</i><br class=""></div><div class=""><p class=""><span class=""><i class="">Mar 05 06:04:28 Reading random entropy from '/dev/urandom'</i></span></p><p class=""><span class=""><i class="">Mar 05 06:04:28 This is module gmysqlbackend.so reporting</i></span></p><p class=""><span class=""><i class="">Mar 05 06:04:28 This is a standalone pdns</i></span></p><p class=""><span class=""><i class="">Mar 05 06:04:28 Fatal error: Trying to set unexisting parameter 'webserver-allow-from'</i></span></p><p class="">I've tried every example like:</p><p class="">webserver-allow-from=<a href="http://127.0.0.0/8,172.16.153.0/24" class="">127.0.0.0/8,172.16.153.0/24</a><br class=""></p><p class="">webserver-allow-from=<span style="line-height:18.5714302062988px" class=""><font face="arial, helvetica, sans-serif" class="">0.0.0.0, ::/0 (default according to documentation)</font></span><br class=""></p><p class=""><span style="line-height:18.5714302062988px" class=""><font face="arial, helvetica, sans-serif" class="">Get the same fatal error on every try.</font></span></p></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2015-03-05 11:49 GMT+01:00 Keresztes Péter-Zoltán <span dir="ltr" class=""><<a href="mailto:zozo@z0z0.tk" target="_blank" class="">zozo@z0z0.tk</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Try restarting the powerdns or maybe start it in debug mode so that you can see why is not listening.<br class=""><div class=""><blockquote type="cite" class=""><div class=""><div class="h5"><div class="">On Mar 5, 2015, at 12:42 PM, Melvin Mughal <<a href="mailto:melvin@mughal.nu" target="_blank" class="">melvin@mughal.nu</a>> wrote:</div><br class=""></div></div><div class=""><div class=""><div class="h5"><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></div></div><span class="">
_______________________________________________<br class="">Pdns-users mailing list<br class=""><a href="mailto:Pdns-users@mailman.powerdns.com" target="_blank" class="">Pdns-users@mailman.powerdns.com</a><br class=""><a href="http://mailman.powerdns.com/mailman/listinfo/pdns-users" target="_blank" class="">http://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br class=""></span></div></blockquote></div><br class=""></div></blockquote></div><br class=""></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=""><a href="http://mailman.powerdns.com/mailman/listinfo/pdns-users" class="">http://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br class=""></div></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=""></div></body></html>