Forum Discussion
Dns Query based on suffix
Hi Folks!
I need to query Computers names from internal Dns and also to query Domain names from the internet by external dns. i have set and internal and external ip's of the dns'es in the DNS Lookup Server List. the problem is that when i use dig to query an a record only the first dns in the dns list answer the query. and there is no answer it does not try the second dns in the list.
i have tried to create a vs for dns with pool of the external and internal dns servers. now i need help with writing an irule that will forward queries that ending with domain.local to InternalDnsNode and all other to ExternalDnsNode.
Please Help or suggest your solution,
Thank,
Aviv Hassidim
2 Replies
- Aviv
Cirrus
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
- Aviv
Cirrus
i forget to write that you have to enbale AddressTranslation and Port Translation
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