[Pdns-users] PDNS-recursor as transparent proxy, fails for outside NS servers

Chris Hofstaedtler chris.hofstaedtler at deduktiva.com
Fri Sep 21 08:05:07 UTC 2018


> On 20.09.2018, at 21:57, Michał Zając <michal.zajac at dreamcommerce.com> wrote:
> 
> Hi *.
> 
>    I'll commit a shameless bump, but maybe someone will throw an
> idea. So I need to modify (probably by lua) some answers from pdns
> server, but after MySQL backend returns it, not before. And as we
> established, I cannot use:
>    - pure pdns server, because it doesn't have lua action to modify answers,
>    - dnsdist, because it can create reply in lua via
> "DNSAction.Spoof", but cannot modify answer given from it's backend
> (pdns server),
>    - pdns-recursor with pdns backend via forward-zones=, because it
> doesn't work with NS records pointing outside for subdomains.
> 
>    Any ideas?

Just add the code in pdns-server to modify outgoing answers using Lua.
I’m sure that’d be a well-received feature.

Chris



More information about the Pdns-users mailing list