[DNSDIST] Send query to different servers based on source address #14928
Unanswered
SuperTrollMan
asked this question in
Q&A
Replies: 1 comment
-
It can be done by using built-in rules:
So you can put your backends in separate pools 6, and route queries to pools according to your needs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm a new dnsdist user, and so far it seems intuitive and easy to use.
However I'd like to be able to send the DNS requests to different servers,
Example IP's have been substituted for RFC1918 addresses to simplify the topology
Client 1 (192.168.0.10) > dnsdist server > 1.1.1.1
Client 2 (192.168.0.20) > dnsdist server > 1.1.1.3
The only useful search I've found is this:
https://serverfault.com/questions/732976/powerdns-is-it-possible-to-send-different-results-based-on-server-ip-used-by-th
Which suggests it would be possible with LUA using dnsdist.
Is this possible with dnsdist, and would you be able to point me in the right direction?
Secondly, if it is possible, can you also specify an internal zone in the mix too?
Example IP's have been substituted for RFC1918 addresses to simplify the topology
Client 1 (192.168.0.10)> lookup google.com > dnsdist server > 1.1.1.1
Client 1 (192.168.0.10)> lookup mydomain.local > dnsdist server > 192.168.10.10
Client 2 (192.168.0.20) > lookup google.com > dnsdist server > 1.1.1.3
Thanks
Beta Was this translation helpful? Give feedback.
All reactions