[Pdns-users] Modifying DNS Response

Klaus Darilion klaus.mailinglists at pernau.at
Mon Sep 14 14:42:35 UTC 2015


You write that "me" is a recursive server, but the redirect to "you" is
done by iptables. This seems redundant - the forwarding should be done
either by the recurser or by iptables.

regards
Klaus

On 10.09.2015 00:19, Önem Özgülgen wrote:
> Hello,
> 
> I was playing with Lua scripting of PowerDNS and want to learn if
> something could be done via preoutquery and/or postresolve functions.
> 
> Is it possible to change query sender ip address of the dns packet and
> making response to another ip address "legally"?
> 
> Let me give an example;
> 
> me -  PowerDNS Recursive Server in Amsterdam
> you - PowerDNS Authoritative Server in London
> they - Client in London
> 
> Client "they" is querying helloworld.com <http://helloworld.com> domain
> name via London ip address to server "me".
> Server "me's" forwarding the dns request to authoritative server "you"
> because of geobased iptables rules.
> Server "you", for sure, will handle the packet and generate a response
> to server "me" with the necessary information.
> Server "me" will response the package coming from server "you" to client
> "they".
> 
> What i want to learn is; when client "they" is querying helloworld.com
> <http://helloworld.com> 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"?
> 
> Hope, i'd explain my question clearly.
> 
> Thanks.
> 
> 
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users
> 




More information about the Pdns-users mailing list