Re: [Pdns-users] PDNS 3.4.5 crash : 5016 questions waiting for database attention. Limit is 5000, respawning

2016-01-11 Thread sumit sharma
You can use overload-queue-length = 1 That way new requests will be answered from the cache. https://github.com/PowerDNS/pdns/issues/365 P.S: Make sure caching is enabled in pdns If you have high end machines, you can think of increasing max-queue-length On Tue, Jan 12, 2016 at 9:48 AM, Indranil

[Pdns-users] My SOA lookup is calling lookup fn. instead of getSOA fn.

2015-08-20 Thread sumit sharma
Hi, Ever since i rebased my branch & updated my backend to use the new APIs, my SOA lookups are going to void lookup(const QType &type, const DNSName &qname, DNSPacket *pkt_p, int zoneId) instead of bool getSOA(const string &name, SOAData &soadata, DNSPacket *p = 0) I have made the changes to f

Re: [Pdns-users] New backend candidate

2015-08-16 Thread sumit sharma
Created a pull request : https://github.com/PowerDNS/pdns/pull/2689 On Sun, Aug 16, 2015 at 12:02 PM, Aki Tuomi wrote: > Please make a pull request. ;) > > > > --- > Aki Tuomi > > > Original message ---- > From: sumit sharma > Date: 15/08/2015 17

[Pdns-users] New backend candidate

2015-08-15 Thread sumit sharma
Hi Powerdns developers, I have written a powerdns backend for cassandra. Please let me know what are the steps to get it reviewed and merged to the main repo. 1. What is the minimum performance number expected. 2. Right now i have populated the database by some test scripts. 3. Do i need to provid

Re: [Pdns-users] Why is powerdns recursively asking for parent domain SOA

2015-05-26 Thread sumit sharma
Sorry for the trouble. I overrode getSOA function & its all fine now :) On Tue, May 26, 2015 at 2:19 PM, Aki Tuomi wrote: > On Tue, May 26, 2015 at 01:23:44PM +0530, sumit sharma wrote: > > Hi, > > > > I have configured my custom backend. > > On query when pdns a

[Pdns-users] Why is powerdns recursively asking for parent domain SOA

2015-05-26 Thread sumit sharma
Hi, I have configured my custom backend. On query when pdns asks for a SOA i give back a SOA. Still it keeps on recursively asking for parent domain SOAs. How can i avoid this. May 26 10:29:09 Remote 127.0.0.1 wants 'abc.tiny.subdomain.mydomain.com|A', do = 0, bufsize = 512: packetcache MISS Ma

Re: [Pdns-users] Is there a place that the backend needs to be registered in powerdns

2015-05-25 Thread sumit sharma
No worries, i had a typo in BackendFactory("mycustom") On Mon, May 25, 2015 at 2:13 PM, sumit sharma wrote: > Hi All, > > I have written my own custom backend. Mostly inspired by the gmysql > backend. > > The build etc is working fine. But when i launch it , i get

[Pdns-users] Is there a place that the backend needs to be registered in powerdns

2015-05-25 Thread sumit sharma
Hi All, I have written my own custom backend. Mostly inspired by the gmysql backend. The build etc is working fine. But when i launch it , i get the below error ./pdns/pdns_server --config-dir=/mypath/pdns/ --daemon=no --guardian=no May 25 13:51:44 Reading random entropy from '/dev/urandom' May

Re: [Pdns-users] Unable to bind to UDP socket to '0.0.0.0:53': Permission denied

2015-05-21 Thread sumit sharma
venience. > > Kind regards, > -- > Peter van Dijk > PowerDNS.COM BV - https://www.powerdns.com/ > > On 21 May 2015, at 12:35, sumit sharma wrote: > > > No, I am not getting the error when reuseport=no. > > I am running powerdns as a service with user=pdns > >

Re: [Pdns-users] Unable to bind to UDP socket to '0.0.0.0:53': Permission denied

2015-05-21 Thread sumit sharma
No, I am not getting the error when reuseport=no. I am running powerdns as a service with user=pdns On Thu, May 21, 2015 at 4:03 PM, bert hubert wrote: > On Thu, May 21, 2015 at 04:00:40PM +0530, sumit sharma wrote: > > Hi, > > > > I am using powerdns on RHEL6.4 . Inorder

[Pdns-users] Unable to bind to UDP socket to '0.0.0.0:53': Permission denied

2015-05-21 Thread sumit sharma
Hi, I am using powerdns on RHEL6.4 . Inorder to use SO_REUSEPORT i upgraded the kernel to 3.9.11. I am using the configuration receiver-threads=4 reuseport=yes When i switch on the reuseport, i see the below error exactly thrice. binding UDP socket to '0.0.0.0:53': Permission denied Unable to r

[Pdns-users] Using pdns as dnsbl

2015-04-18 Thread sumit sharma
> > Hi All, > I am using the pipe backend to run pdns as a dnsbl. Questions: 1. How to stop Pdns for asking for SOA and NS records from the backend. 2. Any sample implementation available? Thanks Sk ___ Pdns-users mailing list Pdns-users@mailman.powerd

[Pdns-users] How to run powerdns in remote debug mode

2015-03-26 Thread sumit sharma
Hi All, I am facing problem in my pipe backend implementation. I only query pdns for A records. pdns normally asks for SOA record followed by ANY record, where i return the value. But sometimes if my backend fails to respond within a timeframe,pdns behaves strangely. It asks for SOA record followe

Re: [Pdns-users] SOA record is coming in answer section

2015-02-24 Thread sumit sharma
ecord goes in AUTHORITY section, when a record is not found in the > zone. > > Aki > > On Tue, Feb 24, 2015 at 04:21:28PM +0530, sumit sharma wrote: > > Hi Aki, > > > > I want the SOA record that i am sending from the backend to come in the > > AUTHORITY sectio

Re: [Pdns-users] SOA record is coming in answer section

2015-02-24 Thread sumit sharma
SECTION. Hence from dig, sometimes i get 1 authority & 2 answers but mostly i get 0 authority and 3 answers Regards, Sumit On Tue, Feb 24, 2015 at 3:20 PM, Aki Tuomi wrote: > On Tue, Feb 24, 2015 at 02:59:19PM +0530, sumit sharma wrote: > > Hi All, > > > > I am currently

[Pdns-users] SOA record is coming in answer section

2015-02-24 Thread sumit sharma
Hi All, I am currently using the pipe backend to server powerdns response. I am trying to make powerdns as all authoritative server. dig query -> dig ANY subdomain.mydomain.com I am sending the following response to powerdns 1. pdns requests for SOA record 2. I send back subdomain.mydomain.

Re: [Pdns-users] How to disable AXFR -1 requests from powerdns

2015-01-12 Thread sumit sharma
Hi Peter, I am using a static SOA for all the dns queries. mydomain.common.suffix.com. 0 IN SOA dummy1.common.suffix.com. dummy2.common.suffix.com. 2008080300 1800 3600 604800 3600 Is this acceptable? Regard, Sumit On Mon, Jan 12, 2015 at 6:03 PM, Peter van Dijk < peter.van.d...@netherlabs.nl>

[Pdns-users] How to disable AXFR -1 requests from powerdns

2015-01-07 Thread sumit sharma
Hello Everyone, I don't want powerdns to send AXFR requests to my pipe backend. Following are the configurations in pdns.conf that are related to AXFR # # allow-axfr-ips Allow zonetransfers only to these subnets # allow-axfr-ips= this field is di

Re: [Pdns-users] Making powerdns all authoritative server

2015-01-07 Thread sumit sharma
Thanks Peter. I will be handling that in my scripts with dummy return values. Best Regards, On Mon, Jan 5, 2015 at 4:08 PM, Peter van Dijk wrote: > Hello Sumit, > > On 29 Dec 2014, at 10:11 , sumit sharma wrote: > > > How can i make powerdns all authoritative server. My dns

[Pdns-users] Making powerdns all authoritative server

2014-12-29 Thread sumit sharma
Hi All, How can i make powerdns all authoritative server. My dns should be source of truth for my services & not recurse. I am using the piped backend and for every query i make to powerdns, internally it is making 2 queries, 1 for SOA record and 2nd for ANY record. Is there a way to cut down on t

Re: [Pdns-users] Powerdns doesn't send type ANY request to the pipe backend

2014-12-11 Thread sumit sharma
I figured it out. There was some internal problem with my backend that used sockets to communicate to a remote server. Required sock related changes at both end. Thanks, Sumit On Wed, Dec 10, 2014 at 2:37 PM, sumit sharma wrote: > Is there a way in which i can set powerdns to behave as &

Re: [Pdns-users] Powerdns doesn't send type ANY request to the pipe backend

2014-12-10 Thread sumit sharma
Is there a way in which i can set powerdns to behave as "all authoritative server". If its possible then I can get rid of all these SOA record handling in my backend script and just deliver A & TXT records. Regards, Sumit On Wed, Dec 10, 2014 at 2:13 PM, sumit sharma wrote: &g

Re: [Pdns-users] Powerdns doesn't send type ANY request to the pipe backend

2014-12-10 Thread sumit sharma
mydomain.com root.mydomain.com 2008080300 60 60 60 0 Regards, Sumit On Wed, Dec 10, 2014 at 2:03 PM, bert hubert wrote: > On Wed, Dec 10, 2014 at 01:59:01PM +0530, sumit sharma wrote: > > From my update, the cache is set to 0. > > And i have verified that there is always a p

Re: [Pdns-users] Powerdns doesn't send type ANY request to the pipe backend

2014-12-10 Thread sumit sharma
27;t understand how pdns is choosing what to query and what not to query from my pipe backend. Kindly please provide suggestions Regards, Sumit On Wed, Dec 10, 2014 at 12:21 AM, sumit sharma wrote: > Hi, > > I am using powerdns-authoritative server 3.4.1 and using its pipe backend. > >

[Pdns-users] Powerdns doesn't send type ANY request to the pipe backend

2014-12-09 Thread sumit sharma
Hi, I am using powerdns-authoritative server 3.4.1 and using its pipe backend. I have a backend service to which i make calls to get the A and TXT records. I am using a script that makes the call to my java backend service. On my first 3 attempts I am getting valid response. But from the 4th