Forum Discussion
Leilow214
Altostratus
Aug 09, 2022F5 DNS iRule for disabling DNS Express for a CNAME query on a particular domain
Hey Folks! So we're using an F5 DNS as a resolver for some of our linux servers and at the same time it is the authoritative DNS for that particular domain let's say we host example.com on the F5 D...
JRahm
Admin
Aug 16, 2022
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.
Leilow214
Altostratus
Aug 17, 2022Thank 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
DevCentral Quicklinks
* 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
Discover DevCentral Connects