William_Benett1
Oct 20, 2006Nimbostratus
LB 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.