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

sumit sharma sksumit1 at gmail.com
Wed Dec 10 08:29:01 UTC 2014


>From my update, the cache is set to 0.
And i have verified that there is always a packetcache MISS.

I don't understand the problem why powerdns does the following
1. 1st 3 requests, sends query requests for both SOA and ANY, one by one
and displays the results as expected
3. 4th request onward, sends query requests for SOA records of
xyz.mydomain.com & mydomain.com  (dig TXT xyz.mydomain.com) . No further
requests.
4. This goes on and then finally after few more requests, pdns requests for
SOA record and the AXFR record. Interestingly it displays the default SOA
configured in pdns.conf to the client .
5. This goes on for a while and then the steps 1-4 are repeated.

Its not a client caching issue, because for each request i see the below
log.
pdns[31241]: Remote 10.211.212.156 wants 'xyz.mydomain.com|TXT', do = 0,
bufsize = 512: packetcache MISS

I don'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 <sksumit1 at gmail.com> wrote:

> 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 attempts onwards, powerdns only requests for SOA and NS
> records and not for A or TXT records.
>
> Hence as a result I am not getting the desired response.
>
> I suspected it is because of some caching issue , so i have done my best
> to disable caching.
>
> But still at the 4th attempt onwards, powerdns doesn’t sends A,TXT or ANY
> requests to my script.
>
> Occasionally it does. I suspect something is wrong configured in my
> pdns.conf or its the records TTL that has the issue.
>
> Please suggest a path forward.
>
> Attached is my script and pdns.conf
>
> My commands :
>
> # dig TXT subdomain.mydomain.com @172.31.12.11
>
>
> ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 <<>> TXT
> subdomain.mydomain.com @172.31.12.11
>
> ;; global options: +cmd
>
> ;; Got answer:
>
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38272
>
> ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
>
> ;; WARNING: recursion requested but not available
>
>
> ;; QUESTION SECTION:
>
> ;subdomain.mydomain.com. IN TXT
>
>
> ;; AUTHORITY SECTION:
>
> mydomain.com. 0 IN SOA localhost. localhost. 2008080300 60 60 60 0
>
>
> ;; Query time: 2 msec
>
> ;; SERVER: 172.31.12.11#53(172.31.12.11)
>
> ;; WHEN: Tue Dec  9 23:51:07 2014
>
> ;; MSG SIZE  rcvd: 91
>
>
>
> ===========Logs=================
>
>
>  pdns-pipe[21938]: [INFO] 21938 Received: Q subdomain.mydomain.com IN SOA
> -1 172.31.12.11
>
>  pdns-pipe[21938]: [DEBUG] command = Q subdomain.mydomain.com IN SOA -1
> 172.31.12.11
>
>  pdns-pipe[21938]: [INFO] 21938 Sent SOA records
>
>  pdns-pipe[21938]: [INFO] 21938 End of data
>
>  pdns-pipe[21938]: [INFO] 21938 Received: Q mydomain.com IN SOA -1
> 172.31.12.11
>
>  pdns-pipe[21938]: [DEBUG] command = Q mydomain.com IN SOA -1 172.31.12.11
>
>  pdns-pipe[21938]: [INFO] 21938 Sent SOA records
>
>  pdns-pipe[21938]: [INFO] 21938 End of data
>
>  pdns-pipe[21938]: [INFO] 21938 Received: Q subdomain.mydomain.com IN NS
> -1 172.31.12.11
>
>  pdns-pipe[21938]: [DEBUG] command = Q subdomain.mydomain.com IN NS -1
> 172.31.12.11
>
>  pdns-pipe[21938]: [INFO] 21938 Sent NS records
>
>  pdns-pipe[21938]: [INFO] 21938 End of data
>
>
> ================================
>
>
> # dig TXT subdomain.mydomain.com @172.31.12.11
>
>
> ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 <<>> TXT
> subdomain.mydomain.com @172.31.12.11
>
> ;; global options: +cmd
>
> ;; Got answer:
>
> ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 26506
>
> ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
>
> ;; WARNING: recursion requested but not available
>
>
> ;; QUESTION SECTION:
>
> ;subdomain.mydomain.com. IN TXT
>
>
> ;; Query time: 2 msec
>
> ;; SERVER: 172.31.12.11#53(172.31.12.11)
>
> ;; WHEN: Tue Dec  9 23:51:09 2014
>
> ;; MSG SIZE  rcvd: 46
>
>
> ===========Logs=================
>
>
>  pdns-pipe[21934]: [INFO] 21934 Received: Q subdomain.mydomain.com IN SOA
> -1 172.31.12.11
>
>  pdns-pipe[21934]: [DEBUG] command = Q subdomain.mydomain.com IN SOA -1
> 172.31.12.11
>
>  pdns-pipe[21934]: [INFO] 21934 Sent SOA records
>
>  pdns-pipe[21934]: [INFO] 21934 End of data
>
>  pdns-pipe[21934]: [INFO] 21934 Received: AXFR -1
>
>  pdns-pipe[21934]: [DEBUG] command = AXFR -1
>
>  pdns[21912]: Backend reported condition which prevented lookup (coprocess
> returned a FAIL) sending out servfail
>
>  pdns-pipe[21934]: [INFO] 21934 Sent command AXFR -1 to dnsd
>
>
> ================================
>
>
> Regards,
>
> Sumit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20141210/7bc07c6c/attachment-0001.html>


More information about the Pdns-users mailing list