Forum Discussion
paul_dcc
Nimbostratus
Apr 08, 2014GTM DNS REQUEST
Hi All,
I need an IRule for GTM so when I receive a DNS Request if it is looking for;
.gcsx.gov.uk or gsi.gov.uk (and there are a few more domains) then forward it to Pool 1 or if it is looking for n...
Cory_50405
Noctilucent
Apr 09, 2014DNS::disable all just prevents any further processing of DNS (GTM, ZoneRunner), since you're forwarding the query somewhere else for resolution.
Instead of an exact match, the iRule can be modified to match for "ends with". Like this:
when DNS_REQUEST {
DNS::question name [string tolower [DNS::question name]]
if { [class match [DNS::question name] ends_with dotuk_group] } {
DNS::disable all
pool pool1
}
elseif { [class match [DNS::question name] ends_with nhs_group] } {
DNS::disable all
pool pool2
}
else {
DNS::disable all
pool default_pool
}
}
So there's no need for you to put the wildcard FQDN in your dotuk_group. Just put it in as gcsx.gov.uk and the ends_with will match anything of that domain or any sub domains.
- Robert_47833May 23, 2015
Altostratus
it seems dns::disable all doesn't disable dns cache
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