Forum Discussion
Dns Query based on suffix
Hi! I figured how to do it: 1.create 2 pools A.Pool_Dns_External B.pool_Dns_Internal
2.create a dns listener: Dns>>Delivery>>Listeners>>Listerner list >> create in "Destination Address(/Mask" put the ip of the dns that you will query. change "Source Address Translation" to Auto Map in the resources Tab choose "Pool_Dns_External" as the pool 3.create this irule
when DNS_REQUEST { if { [DNS::question name] ends_with "domain.local" } { pool Pool_Dns_internal } else { pool Pool_Dns_External } }
4.attach the irule to the vs/dns listener you have created in stage 2
test it by this command from ssh
dig @(ip of the vs) SomeName.domain.local dig @(ip of the vs) yahoo.com
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com