<div dir="ltr"><div><div><div>Hello,<br><br></div>I was playing with Lua scripting of PowerDNS and want to learn if something could be done via preoutquery and/or postresolve functions.<br><br></div>Is it possible to change query sender ip address of the dns packet and making response to another ip address "legally"?<br><br></div><div>Let me give an example;<br><br></div><div>me -  PowerDNS Recursive Server in Amsterdam<br></div><div>you - PowerDNS Authoritative Server in London<br></div><div>they - Client in London<br><br></div><div>Client "they" is querying <a href="http://helloworld.com">helloworld.com</a> domain name via London ip address to server "me".<br></div><div>Server "me's" forwarding the dns request to authoritative server "you" because of geobased iptables rules.<br></div><div>Server "you", for sure, will handle the packet and generate a response to server "me" with the necessary information.<br></div><div>Server "me" will response the package coming from server "you" to client "they".<br><br></div><div>What i want to learn is; when client "they" is querying <a href="http://helloworld.com">helloworld.com</a> domain name via London ip address to server "me", and after server "me" forwarded the dns request to authoritative server "you", could server "you" generate a response packet directly to client "they" without giving reply to server "me"?<br><br></div><div>Hope, i'd explain my question clearly.<br><br></div><div>Thanks.<br></div></div>