Re: [Pdns-users] API issue

2015-03-05 Thread Melvin Mughal
I actually did respond to that Jan-Piet, almost right away with the info he asked for. The problems have finally been solved. The syslog gave a warning one where clause was failing. One field in a table seemed to be wrong and corrected it. Now the curl comes back. Many thanks to all for all the he

Re: [Pdns-users] API issue

2015-03-05 Thread Jan-Piet Mens
Actually, why do you insist on not providing the information that is asked of you. People here are doing their best to help; at the very least it would be polite to respond with the information requested. Christian wrote: Start curl with -v and report back both the exact, unmodified

Re: [Pdns-users] API issue

2015-03-05 Thread Jan-Piet Mens
> curl --local-port 8081 -H 'X-API-Key: otto' > http://178.62.251.135:8081/servers/localhost/zones Why do you insist on using --local-port ? -JP ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/li

Re: [Pdns-users] API issue

2015-03-05 Thread Melvin Mughal
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

Re: [Pdns-users] API issue

2015-03-05 Thread Aki Tuomi
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 > star

Re: [Pdns-users] API issue

2015-03-05 Thread Melvin Mughal
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

Re: [Pdns-users] API issue. 400 Bad Request

2015-03-05 Thread kometch
Hello Christian, > In some versions, '400 Bad Request’ may also happen because of wrong > authentication (i.e. wrong X-API-Key). Please double check the API Key. recursor.conf on which was initialized, and has been set again following parameters, the results did not change. experimental-api-k

Re: [Pdns-users] API issue. 400 Bad Request

2015-03-05 Thread Christian Hofstaedtler
Hi, > On 05 Mar 2015, at 13:16, kometch wrote: [..] > I have used to compile the PowerDNS recursor 3.7.1 on an ARM board from a > source that Cubietruck. [..] > $ curl -v -H 'X-API-Key: changeme' http://127.0.0.1:8082/servers/localhost | > jq . > * Hostname was NOT found in DNS cache > * Tr

[Pdns-users] API issue. 400 Bad Request

2015-03-05 Thread kometch
Hello All, I have used to compile the PowerDNS recursor 3.7.1 on an ARM board from a source that Cubietruck. Below the place you are trying to obtain statistical information by API on which has been set to PowerDNS recursor to reference, become Bad Request problem has occurred. $ curl -v -H '

Re: [Pdns-users] API issue

2015-03-05 Thread Jan-Piet Mens
> *Mar 05 06:04:28 Fatal error: Trying to set unexisting parameter > 'webserver-allow-from'* IIRC (I don't feel like going back to study all this) you've been telling us all the time that all was fine... Before bothering with the API, make sure your PowerDNS server starts without errors. Check th

Re: [Pdns-users] API issue

2015-03-05 Thread Keresztes Péter-Zoltán
As far as I remember this was introduced in 3.4 version of pdns-server > On Mar 5, 2015, at 1:20 PM, Keresztes Péter-Zoltán wrote: > > What is the version of pdns you are running? > >> On Mar 5, 2015, at 1:11 PM, Melvin Mughal > > wrote: >> >> sudo /etc/init.d/pdns mo

Re: [Pdns-users] API issue

2015-03-05 Thread Melvin Mughal
Running PowerDNS Authoritative Server 3.4.2. 2015-03-05 12:20 GMT+01:00 Keresztes Péter-Zoltán : > What is the version of pdns you are running? > > On Mar 5, 2015, at 1:11 PM, Melvin Mughal wrote: > > *sudo /etc/init.d/pdns monitor* > > *Mar 05 06:04:28 Reading random entropy from '/dev/urandom

Re: [Pdns-users] API issue

2015-03-05 Thread Keresztes Péter-Zoltán
What is the version of pdns you are running? > On Mar 5, 2015, at 1:11 PM, Melvin Mughal wrote: > > sudo /etc/init.d/pdns monitor > Mar 05 06:04:28 Reading random entropy from '/dev/urandom' > > Mar 05 06:04:28 This is module gmysqlbackend.so reporting > > Mar 05 06:04:28 This is a standalone

Re: [Pdns-users] API issue

2015-03-05 Thread Koko Wijatmoko
On Thu, 5 Mar 2015 12:11:03 +0100 Melvin Mughal wrote: > *Mar 05 06:04:28 Fatal error: Trying to set unexisting > parameter 'webserver-allow-from'* > maybe your pdns is to old, and not support webserver-allow-from setting. ___ Pdns-users mailing list

Re: [Pdns-users] API issue

2015-03-05 Thread Melvin Mughal
*sudo /etc/init.d/pdns monitor* *Mar 05 06:04:28 Reading random entropy from '/dev/urandom'* *Mar 05 06:04:28 This is module gmysqlbackend.so reporting* *Mar 05 06:04:28 This is a standalone pdns* *Mar 05 06:04:28 Fatal error: Trying to set unexisting parameter 'webserver-allow-from'* I've tri

Re: [Pdns-users] API issue

2015-03-05 Thread Keresztes Péter-Zoltán
Try restarting the powerdns or maybe start it in debug mode so that you can see why is not listening. > On Mar 5, 2015, at 12:42 PM, Melvin Mughal wrote: > > Sorry about being unspecific. This is the uncut version: > > curl -v 'X-API-Key: otto' http://188.226.135.47:8081/servers/localhost/zones

Re: [Pdns-users] API issue

2015-03-05 Thread Melvin Mughal
Sorry about being unspecific. This is the uncut version: curl -v 'X-API-Key: otto' http://188.226.135.47:8081/servers/localhost/zones * Rebuilt URL to: X-API-Key: otto/ * Hostname was NOT found in DNS cache * Could not resolve host: X-API-Key * Closing connection 0 curl: (6) Could not resolv

[Pdns-users] Order Value Decimal Place /leading Zero behaviour

2015-03-05 Thread Jonathan Hunter
Hi Guys, I am testing the Order Value in the content of NAPTR records using powerdns and MySQL database. I am trying to see an order value of 0.000322 which is lowest cost entry for one target carrier, and 0.0049 for a slightly more expensive carrier. So content looks like this in the records ta

Re: [Pdns-users] API issue

2015-03-05 Thread Christian Hofstaedtler
Hi, > On 05 Mar 2015, at 10:57, Melvin Mughal wrote: > > The curl commands I run form my own system to the server: > > > curl -s -H 'X-API-Key: otto' http://xxx.xx.xx.xx:8081/servers/localhost > > > curl -s -H 'X-API-Key: otto' http://xxx.xx.xx.xx:8081/servers/localhost/zones > > And it j

Re: [Pdns-users] API issue

2015-03-05 Thread Melvin Mughal
I actually just copied/adjusted your config and run the same curl commands. So my config in the pdns.conf for the API: *webserver-address=ip address of the server* *webserver-allow-from=0.0.0.0, ::/0* *webserver-port=8081* *webserver=yes* *experimental-api-key=otto* *experimental-json-interfa

Re: [Pdns-users] Configure private subdomain

2015-03-05 Thread Nikolaos Milas
On 5/3/2015 8:53 πμ, Michael Ströder wrote: Yes, IMHO it's far easier to build up a replicated setup with the LDAP backend than with any SQL DB. We are using LDAP replication for powerdns (rather than normal master-slaves) for years. It is a great setup. >Unfortunately, Grégory Oestreicher'