[Pdns-users] How can I prevent that SOA and ANY queries are passed to a backend if NAPTR was requested?

Aki Tuomi cmouse at cmouse.fi
Thu Jan 16 07:23:39 UTC 2020


Hi!

Please see the following excellent blog post about this topic:

https://blog.powerdns.com/2015/06/23/what-is-a-powerdns-backend-and-how-do-i-make-it-send-an-nxdomain/

Also if you need to reply NAPTR+TXT, you save time with replying those
in ANY reply, as PowerDNS will cache your reply.

Aki


On 15.1.2020 23.08, Matthias Kruzenski wrote:
> In other words, what I want is impossible? 
>
> If so, maybe someday someone can implement it. Reason for my questions:
> https://mailman.powerdns.com/pipermail/pdns-users/2020-January/026467.html
>
> Am Mi., 15. Jan. 2020 um 21:47 Uhr schrieb Klaus Darilion
> <klaus.mailinglists at pernau.at <mailto:klaus.mailinglists at pernau.at>>:
>
>     Am 15.01.2020 um 19:21 schrieb Matthias Kruzenski:
>     > Hello,
>     >
>     > I want to use PowerDNS to answer NAPTR queries through the pipe
>     backend.
>     > This works, but PowerDNS does not pass a NAPTR request to the
>     backend,
>     > but always a SOA request and then an ANY request.
>     >
>     > I only want to pass what was explicitly requested to the backend
>     and
>     > nothing else because the server has to process many millions of
>     requests
>     > and any overhead is not desired.
>
>     This is how PowerDNS works.
>
>     1. Find the zone which handles the request. This is done with SOA
>     requests.
>
>     Ie. a query for a.b.c.d.e NAPTR triggers a SOA query for
>     a.b.c.d.e. IF
>     SOA ist not found, it tries b.c.d.e and so on until a SOA is
>     found. With
>     the SOA the Domain-Id is found, which is used for the next query.
>
>     2. Fetch the respective ressource record. PowerDNS queries the
>     backend
>     always with ANY to get all ressource records ofr the respective label
>     (and caches them in the query cache). OF course it will return to the
>     client only the requested type, ie NAPTR.
>
>     So, you have to return all RRs for a respective label.
>
>     regards
>     Klaus
>     _______________________________________________
>     Pdns-users mailing list
>     Pdns-users at mailman.powerdns.com
>     <mailto:Pdns-users at mailman.powerdns.com>
>     https://mailman.powerdns.com/mailman/listinfo/pdns-users
>
>
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/pdns-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20200116/c83b0330/attachment.htm>


More information about the Pdns-users mailing list