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