<div dir="ltr">Hi,<div><br></div><div><div>On my auth server I want to make use of the recently introduced <a href="https://doc.powerdns.com/authoritative/lua-records.html">LUA records</a>.</div><div>They are really great for me, as I have some records that should resolve differently depending on the IP of the requestor</div><div><br></div><div>They look like this on my auth server</div><div>test.home    1       IN      LUA     A "view({ {{'<a href="http://10.100.1.2/32'" target="_blank">10.100.1.2/32'</a>},{'1.2.3.4'}}, {{'<a href="http://0.0.0.0/0'" target="_blank">0.0.0.0/0'</a>},{'5.6.7.8'}} })"</div></div><div><br></div><div>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') </div><div>I cannot have my auth server as my primary DNS server on my LAN clients, though, cause otherwise they can't resolve external domains.</div><div>So I had to put the recursor in front of my auth server.</div><div>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.</div><div> </div><div>How could I use the LUA record functionality, as I am now forced to use the recursor as my "frontend" ?  <br></div><div><br></div><div>Thanks in advance</div><div><br></div><div>Guillaume</div><div> <br></div><div><br></div><div>Note: everything running on Debian Stretch, installed using the Master repos</div><div><br></div></div>