<div dir="ltr">From my update, the cache is set to 0.<div>And i have verified that there is always a packetcache MISS.</div><div><br></div><div>I don't understand the problem why powerdns does the following</div><div>1. 1st 3 requests, sends query requests for both SOA and ANY, one by one and displays the results as expected</div><div>3. 4th request onward, sends query requests for SOA records of <a href="http://xyz.mydomain.com">xyz.mydomain.com</a> & <a href="http://mydomain.com">mydomain.com</a>  (dig TXT <a href="http://xyz.mydomain.com">xyz.mydomain.com</a>) . No further requests.</div><div>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 .</div><div>5. This goes on for a while and then the steps 1-4 are repeated.</div><div><br></div><div>Its not a client caching issue, because for each request i see the below log.</div><div>pdns[31241]: Remote 10.211.212.156 wants '<a href="http://xyz.mydomain.com">xyz.mydomain.com</a>|TXT', do = 0, bufsize = 512: packetcache MISS<br></div><div><br></div><div>I don't understand how pdns is choosing what to query and what not to query from my pipe backend.</div><div>Kindly please provide suggestions</div><div><br></div><div>Regards,</div><div>Sumit</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 10, 2014 at 12:21 AM, sumit sharma <span dir="ltr"><<a href="mailto:sksumit1@gmail.com" target="_blank">sksumit1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>







<p>I am using powerdns-authoritative server 3.4.1 and using its pipe backend.</p>
<p>I have a backend service to which i make calls to get the A and TXT records.</p>
<p>I am using a script that makes the call to my java backend service.</p>
<p><br></p>
<p>On my first 3 attempts I am getting valid response.</p>
<p>But from the 4th attempts onwards, powerdns only requests for SOA and NS records and not for A or TXT records.</p>
<p>Hence as a result I am not getting the desired response.</p>
<p>I suspected it is because of some caching issue , so i have done my best to disable caching.</p>
<p>But still at the 4th attempt onwards, powerdns doesn’t sends A,TXT or ANY requests to my script.</p>
<p>Occasionally it does. I suspect something is wrong configured in my pdns.conf or its the records TTL that has the issue.</p>
<p>Please suggest a path forward.</p>
<p>Attached is my script and pdns.conf</p>
<p>My commands :</p>
<p># dig TXT <a href="http://subdomain.mydomain.com" target="_blank">subdomain.mydomain.com</a> @<a href="http://172.31.12.11" target="_blank">172.31.12.11</a></p>
<p><br></p>
<p>; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 <<>> TXT <a href="http://subdomain.mydomain.com" target="_blank">subdomain.mydomain.com</a> @<a href="http://172.31.12.11" target="_blank">172.31.12.11</a></p>
<p>;; global options: +cmd</p>
<p>;; Got answer:</p>
<p>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38272</p>
<p>;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0</p>
<p>;; WARNING: recursion requested but not available</p>
<p><br></p>
<p>;; QUESTION SECTION:</p>
<p>;<a href="http://subdomain.mydomain.com" target="_blank">subdomain.mydomain.com</a>.<span>       </span>IN<span>     </span>TXT</p>
<p><br></p>
<p>;; AUTHORITY SECTION:</p>
<p><a href="http://mydomain.com" target="_blank">mydomain.com</a>. 0<span>  </span>IN<span>     </span>SOA<span>    </span>localhost. localhost. 2008080300 60 60 60 0</p>
<p><br></p>
<p>;; Query time: 2 msec</p>
<p>;; SERVER: 172.31.12.11#53(172.31.12.11)</p>
<p>;; WHEN: Tue Dec  9 23:51:07 2014</p>
<p>;; MSG SIZE  rcvd: 91</p>
<p><br></p>
<p><br></p>
<p>===========Logs=================</p>
<p><br></p>
<p> pdns-pipe[21938]: [INFO] 21938 Received: Q <a href="http://subdomain.mydomain.com" target="_blank">subdomain.mydomain.com</a> IN SOA -1 172.31.12.11</p>
<p> pdns-pipe[21938]: [DEBUG] command = Q <a href="http://subdomain.mydomain.com" target="_blank">subdomain.mydomain.com</a> IN SOA -1 172.31.12.11</p>
<p> pdns-pipe[21938]: [INFO] 21938 Sent SOA records</p>
<p> pdns-pipe[21938]: [INFO] 21938 End of data</p>
<p> pdns-pipe[21938]: [INFO] 21938 Received: Q <a href="http://mydomain.com" target="_blank">mydomain.com</a> IN SOA -1 172.31.12.11</p>
<p> pdns-pipe[21938]: [DEBUG] command = Q <a href="http://mydomain.com" target="_blank">mydomain.com</a> IN SOA -1 172.31.12.11</p>
<p> pdns-pipe[21938]: [INFO] 21938 Sent SOA records</p>
<p> pdns-pipe[21938]: [INFO] 21938 End of data</p>
<p> pdns-pipe[21938]: [INFO] 21938 Received: Q <a href="http://subdomain.mydomain.com" target="_blank">subdomain.mydomain.com</a> IN NS -1 172.31.12.11</p>
<p> pdns-pipe[21938]: [DEBUG] command = Q <a href="http://subdomain.mydomain.com" target="_blank">subdomain.mydomain.com</a> IN NS -1 172.31.12.11</p>
<p> pdns-pipe[21938]: [INFO] 21938 Sent NS records</p>
<p> pdns-pipe[21938]: [INFO] 21938 End of data</p>
<p><br></p>
<p>================================</p>
<p><br></p>
<p># dig TXT <a href="http://subdomain.mydomain.com" target="_blank">subdomain.mydomain.com</a> @<a href="http://172.31.12.11" target="_blank">172.31.12.11</a></p>
<p><br></p>
<p>; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 <<>> TXT <a href="http://subdomain.mydomain.com" target="_blank">subdomain.mydomain.com</a> @<a href="http://172.31.12.11" target="_blank">172.31.12.11</a></p>
<p>;; global options: +cmd</p>
<p>;; Got answer:</p>
<p>;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 26506</p>
<p>;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0</p>
<p>;; WARNING: recursion requested but not available</p>
<p><br></p>
<p>;; QUESTION SECTION:</p>
<p>;<a href="http://subdomain.mydomain.com" target="_blank">subdomain.mydomain.com</a>.<span>       </span>IN<span>     </span>TXT</p>
<p><br></p>
<p>;; Query time: 2 msec</p>
<p>;; SERVER: 172.31.12.11#53(172.31.12.11)</p>
<p>;; WHEN: Tue Dec  9 23:51:09 2014</p>
<p>;; MSG SIZE  rcvd: 46</p>
<p><br></p>
<p>===========Logs=================</p>
<p><br></p>
<p> pdns-pipe[21934]: [INFO] 21934 Received: Q <a href="http://subdomain.mydomain.com" target="_blank">subdomain.mydomain.com</a> IN SOA -1 172.31.12.11</p>
<p> pdns-pipe[21934]: [DEBUG] command = Q <a href="http://subdomain.mydomain.com" target="_blank">subdomain.mydomain.com</a> IN SOA -1 172.31.12.11</p>
<p> pdns-pipe[21934]: [INFO] 21934 Sent SOA records</p>
<p> pdns-pipe[21934]: [INFO] 21934 End of data</p>
<p> pdns-pipe[21934]: [INFO] 21934 Received: AXFR -1</p>
<p> pdns-pipe[21934]: [DEBUG] command = AXFR -1</p>
<p> pdns[21912]: Backend reported condition which prevented lookup (coprocess returned a FAIL) sending out servfail</p>
<p> pdns-pipe[21934]: [INFO] 21934 Sent command AXFR -1 to dnsd</p>
<p><br></p>
<p>================================</p><p><br></p><p>Regards,</p><p>Sumit</p></div></div>
</blockquote></div><br></div>