Forum Discussion
Problem using DNS::return in a GTM iRule
You'll have to do this as an LTM iRule as those DNS functions don't work as GTM iRules.
GTM iRules can return CNAME and A records utilising the "cname" and "host" commands respectively, but they can't return NXDOMAIN afaik.
If you want to only do this behavior for particular FQDNs (WideIPs) then simply add an additional condition to your iRule logic e.g. if { ([DNS::rrtype] eq "A") and ([DNS::rrname] eq "wideip.domain.com") } {
(just remember - to use this as an LTM iRule, make sure you enable a DNS profile on your GTM listener(s))
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