Re: [Pdns-users] Forward client request

2019-11-12 Thread Thomas Mieslinger

If you are familiar with policy based routing or multiple vrfs and
running multiple pdns_recursor instances you could create two (or more)
pdns_recursor services and configure the routing to send the dns
requests to the desired recursor.

On 11/12/19 12:05 PM, mendisobal via Pdns-users wrote:

How i can forward recursive DNS requests based on source address of the
client. To do this need to have ability to return address of the next NS
from preresove function (instead of NS-records).
Is there any example on lua?

___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] Forward client request

2019-11-12 Thread bert hubert
On Tue, Nov 12, 2019 at 11:05:30AM +, mendisobal via Pdns-users wrote:
> How i can forward recursive DNS requests based on source address of the 
> client. To do this need to have ability to return address of the next NS from 
> preresove function (instead of NS-records).
> Is there any example on lua?

Hi "Mendisobal",

For this kind of forwarding we recommend using dnsdist. It is also freely
available. The PowerDNS Recursor itself has a very hard time doing stuff
like this.

Good luck!

Bert
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] Forward client request

2019-11-12 Thread Brian Candler

On 12/11/2019 11:05, mendisobal via Pdns-users wrote:
How i can forward recursive DNS requests based on source address of 
the client.


If you're forwarding client requests programmatically, then you probably 
would be better off using dnsdist (and there's a different mailing list 
 for that)


I don't know if this is relevant to your situation, but there is also 
something related called "edns client subnet".  This allows an 
*authoritative* server to return different responses to the *recursor*, 
depending on the source subnet of the *client* which made the query to 
the recursor.


HTH,

Brian.

___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


[Pdns-users] Forward client request

2019-11-12 Thread mendisobal via Pdns-users
How i can forward recursive DNS requests based on source address of the client. 
To do this need to have ability to return address of the next NS from preresove 
function (instead of NS-records).
Is there any example on lua?___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users