DNS irule / topology
Hello-
I have a DNS irule in place to select a particular pool based on LDNS source subnet. However, the WIP load balancing method still overrides my irule. For example, with the irule in place, GA, RR LB methods will ultimately lead to the incorrect pool selection.
Using a Topology reference outside of an iRule, (Wide IP > Topology) with the Topology LB method selected does work, however I need this to work within an iRule. How am I able to enforce the iRule logic?
My iRule is as follows:
when DNS_REQUEST {
if { [IP::addr [IP::remote_addr] equals 10.0.0.0/9] } {
if { [active_members pool1] > 0 } {
pool pool1
}
elseif { [IP::addr [IP::remote_addr] equals 10.128.0.0/9] } {
if { [active_members pool2] > 0 } {
pool pool2
}
}
}
}