Forum Discussion
Samir_Jha_52506
Jun 11, 2015Noctilucent
Something like this. Please try link.
when DNS_REQUEST {
if { [IP::addr [IP::remote_addr] equals 10.10.1.0/32] } {
cname foo1.bar.com
} elseif {[IP::addr [IP::remote_addr] equals 2.2.2.2/32] } {
cname foo2.bar.com
}
}
- Jim_Mathers_131Jun 11, 2015NimbostratusHello Samir, Thank you for the answer. My intent is not to return CNAMEs based on DNS_REQUEST but instead to return a CNAME based on the Pool Member selected by the GTM, which is why I think the event LB_SELECTED is more appropriate. In your config, you are triggering on DNS_REQUEST, I need to trigger based on LB_SELECTED (I think). Thanks, Jim