Forum Discussion
F5 DNS iRule for disabling DNS Express for a CNAME query on a particular domain
Hi JRahm,
Good day!
Thank you for the response, appreciate it. How do I refine it only for the targeted domain? Can you share the commands/syntax please?
Regards,
Leo
something like this should work for you, I threw in my.domain.com as a test condition.
when DNS_REQUEST {
if { ([string toupper [DNS::question type]] eq "CNAME") && ([string toupper [DNS::question name]] eq "my.domain.com")} {
DNS::disable dnsx
}
}
Again...i'd test to see how DNS::question returns values, and if all caps or all lower case on each sub-command (type, name, etc) then you can safely remove the string toupper to avoid the additional operations.
- Leilow214Aug 17, 2022
Altostratus
Thank you so much for the response guys! I will test this out by next week and let you all know the result.
Regards,
Leo
- LiefZimmermanOct 13, 2022
Admin
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