<div dir="ltr">Ok, did a fresh install. Now it's listening on 8081, pdns monitor seems to say everything is oke, but curl still goes bad:<div><br></div><div>
<p><span>/etc/powerdns# service pdns monitor</span></p>
<p><span>Mar 05 12:36:05 Reading random entropy from '/dev/urandom'</span></p>
<p><span>Mar 05 12:36:05 This is a standalone pdns</span></p>
<p><span>Mar 05 12:36:05 UDP server bound to <a href="http://178.62.251.135:53" target="_blank">178.62.251.135:53</a></span></p>
<p><span>Mar 05 12:36:05 TCP server bound to <a href="http://178.62.251.135:53" target="_blank">178.62.251.135:53</a></span></p>
<p><span>Mar 05 12:36:05 PowerDNS Authoritative Server 3.4.3 (<a href="mailto:jenkins@autotest.powerdns.com" target="_blank">jenkins@autotest.powerdns.com</a>) (C) 2001-2015 PowerDNS.COM BV</span></p>
<p><span>Mar 05 12:36:05 Using 64-bits mode. Built on 20150302135812 by <a href="mailto:root@autotest.powerdns.com" target="_blank">root@autotest.powerdns.com</a>, gcc 4.7.2.</span></p>
<p><span>Mar 05 12:36:05 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.</span></p>
<p><span>Mar 05 12:36:05 Polled security status of version 3.4.3 at startup, no known issues reported: OK</span></p>
<p><span>Mar 05 12:36:05 Creating backend connection for TCP</span></p>
<p><span>% Mar 05 12:36:05 gmysql Connection successful. Connected to database 'powerdns' on 'localhost'.</span></p>
<p><span>Mar 05 12:36:05 About to create 3 backend threads for UDP</span></p>
<p><span>Mar 05 12:36:05 gmysql Connection successful. Connected to database 'powerdns' on 'localhost'.</span></p>
<p><span>Mar 05 12:36:05 gmysql Connection successful. Connected to database 'powerdns' on 'localhost'.</span></p>
<p><span>Mar 05 12:36:05 gmysql Connection successful. Connected to database 'powerdns' on 'localhost'.</span></p>
<p><span>Mar 05 12:36:05 Done launching threads, ready to distribute questions</span></p>
<p><span>^C</span></p>
<p><span>root@8:/etc/powerdns# service pdns start</span></p>
<p><span>Starting PowerDNS authoritative nameserver: started</span></p>
<p><span>root@8:/etc/powerdns# service pdns status</span></p>
<p><span>686: Child running on pid 688</span></p>
<p><span>root@8:/etc/powerdns# lsof -i -P | grep -i 8081</span></p>
<p><span>pdns_serv 688 root 6u IPv4 35710 0t0 TCP <a href="http://178.62.251.135" target="_blank">178.62.251.135</a>:</span><span>8081</span><span> (LISTEN)</span></p><p><b>Here is the curl (with webserver-allow-from=0.0.0.0):</b></p>
<p><span>curl --local-port 8081 -H 'X-API-Key: otto' <a href="http://178.62.251.135:8081/servers/localhost/zones" target="_blank">http://178.62.251.135:8081/servers/localhost/zones</a></span></p><p>
</p><p><span>curl: (56) Recv failure: Connection reset by peer</span></p><p><b><span>Here is the curl with (</span>with webserver-allow-from=my own connection ip, where the curl is coming from)</b></p><p><span>curl --local-port 8081 -H 'X-API-Key: otto' <a href="http://178.62.251.135:8081/servers/localhost/zones" target="_blank">http://178.62.251.135:8081/servers/localhost/zones</a></span></p><p>
</p><p><span>Internal Server Error</span></p></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-05 17:52 GMT+01:00 Aki Tuomi <span dir="ltr"><<a href="mailto:cmouse@youzen.ext.b2.fi" target="_blank">cmouse@youzen.ext.b2.fi</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Thu, Mar 05, 2015 at 05:43:36PM +0100, Melvin Mughal wrote:<br>
> Ok, I'm an idiot. Found the problem. I did apt-get the package to install<br>
> and assumed it was the latest and greatest. The dump/monitor doesn't show<br>
> version when it has an error. After I deleted all the API lines, the server<br>
> started. When I dumped the log it showed the version.. PowerDNS version<br>
> 3.3.1...which has no API support. Eventually, Koko was right ;)<br>
><br>
> I tried the newest version 3.4.3 through instructions (<br>
> <a href="https://doc.powerdns.com/md/authoritative/installation/" target="_blank">https://doc.powerdns.com/md/authoritative/installation/</a>) via dpkg install.<br>
> But when I try to install the pdns-backend-mysql package it won't install,<br>
> saying it needs pdns 3.3.1. I tried to first install pdns 3.3.1 and get rid<br>
> off it via dpkg replacing it with pdns 3.4.3. But that doesn't work. Is<br>
> there a newer version I need to get?<br>
><br>
<br>
</span>Hi, the static debian package provided by PowerDNS contains most backends.<br>
<span><font color="#888888"><br>
Aki<br>
</font></span></blockquote></div><br></div></div>