<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi!</p>
<p>Please see the following excellent blog post about this topic:</p>
<p><a class="moz-txt-link-freetext" href="https://blog.powerdns.com/2015/06/23/what-is-a-powerdns-backend-and-how-do-i-make-it-send-an-nxdomain/">https://blog.powerdns.com/2015/06/23/what-is-a-powerdns-backend-and-how-do-i-make-it-send-an-nxdomain/</a></p>
<p>Also if you need to reply NAPTR+TXT, you save time with replying
those in ANY reply, as PowerDNS will cache your reply.<br>
</p>
<p>Aki<br>
</p>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 15.1.2020 23.08, Matthias Kruzenski
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CANEEe=L=u5ADzzXjk81KapHwMPgzz2BhsCyB1MDY0OV-ERSx7w@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">In other words, what I want is impossible? <br>
<div><br>
</div>
<div>If so, maybe someday someone can implement it. Reason for
my questions:<br>
</div>
<div><a
href="https://mailman.powerdns.com/pipermail/pdns-users/2020-January/026467.html"
moz-do-not-send="true">https://mailman.powerdns.com/pipermail/pdns-users/2020-January/026467.html</a><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Am Mi., 15. Jan. 2020 um
21:47 Uhr schrieb Klaus Darilion <<a
href="mailto:klaus.mailinglists@pernau.at"
moz-do-not-send="true">klaus.mailinglists@pernau.at</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am
15.01.2020 um 19:21 schrieb Matthias Kruzenski:<br>
> Hello,<br>
> <br>
> I want to use PowerDNS to answer NAPTR queries through
the pipe backend. <br>
> This works, but PowerDNS does not pass a NAPTR request to
the backend, <br>
> but always a SOA request and then an ANY request.<br>
> <br>
> I only want to pass what was explicitly requested to the
backend and <br>
> nothing else because the server has to process many
millions of requests <br>
> and any overhead is not desired.<br>
<br>
This is how PowerDNS works.<br>
<br>
1. Find the zone which handles the request. This is done with
SOA requests.<br>
<br>
Ie. a query for a.b.c.d.e NAPTR triggers a SOA query for
a.b.c.d.e. IF <br>
SOA ist not found, it tries b.c.d.e and so on until a SOA is
found. With <br>
the SOA the Domain-Id is found, which is used for the next
query.<br>
<br>
2. Fetch the respective ressource record. PowerDNS queries the
backend <br>
always with ANY to get all ressource records ofr the
respective label <br>
(and caches them in the query cache). OF course it will return
to the <br>
client only the requested type, ie NAPTR.<br>
<br>
So, you have to return all RRs for a respective label.<br>
<br>
regards<br>
Klaus<br>
_______________________________________________<br>
Pdns-users mailing list<br>
<a href="mailto:Pdns-users@mailman.powerdns.com"
target="_blank" moz-do-not-send="true">Pdns-users@mailman.powerdns.com</a><br>
<a
href="https://mailman.powerdns.com/mailman/listinfo/pdns-users"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Pdns-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pdns-users@mailman.powerdns.com">Pdns-users@mailman.powerdns.com</a>
<a class="moz-txt-link-freetext" href="https://mailman.powerdns.com/mailman/listinfo/pdns-users">https://mailman.powerdns.com/mailman/listinfo/pdns-users</a>
</pre>
</blockquote>
</body>
</html>