Forum Discussion
jaimes_39948
Nimbostratus
Aug 02, 2012GTM iRule To Load Balance DNS Resolution
Greetings, I am an iRule newbie who inherited the administration of a GTM. I have an application request which requires the GTM to load balance the DNS resolution of a URL between (2) web se...
dlg_23340
Cirrus
Aug 03, 2012jaimes, that's a pretty strange load balancing method, but you can get the third octet of a client's LDNS with getfield. Something like this would do what you want:
when DNS_REQUEST {
if { [getfield [IP::client_addr] "." 3] < 128 } {
pool poolA
} else {
pool poolB
}
}
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