Forum Discussion
William_Benett1
Nimbostratus
Oct 20, 2006LB based on DNS response?
Hi folks,
I'm trying to write an iRule to perform a DNS lookup on the IP address of the client, and based on something contained in the reverse, make a load balancing decision.
Initially I wrote this:
when CLIENT_ACCEPTED {
NAME::lookup IP::client_addr
}
when NAME_RESOLVED {
if { [NAME::response] contains ".abc.com"} then {
pool www-pool2
}
}
But i realize now that, for some reason, I cannot select a pool in the NAME_RESOLVED event.
Is there a way to pull this off? I'm running on version 9.1.2, but I can upgrade if need be.
Thanks,
--Bill
I'm testing this rule with HTTP traffic, but in production I need to use this for SMTP and other non-HTTP protocols.
- William_Benett1
Nimbostratus
So adding some more data into this. . . - William_Benett1
Nimbostratus
It took me a while, but I figured it out.
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