[Pdns-users] LUA records when behind the recursor

Guillaume Rozan grozan.pub at gmail.com
Sat Sep 29 12:17:47 UTC 2018


Hi,

On my auth server I want to make use of the recently introduced LUA records
<https://doc.powerdns.com/authoritative/lua-records.html>.
They are really great for me, as I have some records that should resolve
differently depending on the IP of the requestor

They look like this on my auth server
test.home    1       IN      LUA     A "view({ {{'10.100.1.2/32'},{'1.2.3.4'}},
{{'0.0.0.0/0'},{'5.6.7.8'}} })"

Everything works great if I query the auth server directly (the 10.100.1.2
machine will get '1.2.3.4' as answer, and all the others get '5.6.7.8')
I cannot have my auth server as my primary DNS server on my LAN clients,
though, cause otherwise they can't resolve external domains.
So I had to put the recursor in front of my auth server.
Now that I query the recusor, which in turn queries the auth server on my
behalf, the original IP of the requestor is "lost" and such rules do not
work anymore.

How could I use the LUA record functionality, as I am now forced to use the
recursor as my "frontend" ?

Thanks in advance

Guillaume


Note: everything running on Debian Stretch, installed using the Master repos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20180929/6ed9ca33/attachment.html>


More information about the Pdns-users mailing list