<div dir="ltr"><div><i>sudo /etc/init.d/pdns monitor</i><br></div><div>
<p class=""><span class=""><i>Mar 05 06:04:28 Reading random entropy from '/dev/urandom'</i></span></p>
<p class=""><span class=""><i>Mar 05 06:04:28 This is module gmysqlbackend.so reporting</i></span></p>
<p class=""><span class=""><i>Mar 05 06:04:28 This is a standalone pdns</i></span></p>
<p class=""><span class=""><i>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">127.0.0.0/8,172.16.153.0/24</a><br></p><p class="">webserver-allow-from=<span style="line-height:18.5714302062988px"><font color="#000000" face="arial, helvetica, sans-serif">0.0.0.0, ::/0 (default according to documentation)</font></span><br></p><p class=""><span style="line-height:18.5714302062988px"><font color="#000000" face="arial, helvetica, sans-serif">Get the same fatal error on every try.</font></span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-05 11:49 GMT+01:00 Keresztes Péter-Zoltán <span dir="ltr"><<a href="mailto:zozo@z0z0.tk" target="_blank">zozo@z0z0.tk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Try restarting the powerdns or maybe start it in debug mode so that you can see why is not listening.<br><div><blockquote type="cite"><div><div class="h5"><div>On Mar 5, 2015, at 12:42 PM, Melvin Mughal <<a href="mailto:melvin@mughal.nu" target="_blank">melvin@mughal.nu</a>> wrote:</div><br></div></div><div><div><div class="h5"><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></div></div><span class="">
_______________________________________________<br>Pdns-users mailing list<br><a href="mailto:Pdns-users@mailman.powerdns.com" target="_blank">Pdns-users@mailman.powerdns.com</a><br><a href="http://mailman.powerdns.com/mailman/listinfo/pdns-users" target="_blank">http://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br></span></div></blockquote></div><br></div></blockquote></div><br></div>