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 08, 2014This iRule uses data groups and should allow you some more flexibility going forward, if you wish to add more domains. This will require you to create two data groups (string type is fine) in order for this to work:
dotuk_group (include gcsx.gov.uk and gsi.gov.uk domains)
nhs_group (include nhs.uk domain)
This iRule should work for you:
when DNS_REQUEST {
DNS::question name [string tolower [DNS::question name]]
if { [class match [DNS::question name] eq dotuk_group] } {
DNS::disable all
pool pool1
}
elseif { [class match [DNS::question name] eq nhs_group] } {
DNS::disable all
pool pool2
}
else {
DNS::disable all
pool default_pool
}
}
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