Ruggerfly1
Apr 04, 2013Nimbostratus
GTM IRULE for DNS request by certain IP's.
Good Morning
Trying to stick to DNS Server queries to a pool made just for them; will this work? The IP's are Google public DNS servers. WOuld stick this IRULE to the WIP.
8.8.8.8 always gets pool google-a
8.8.4.4 always gets pool google-b
all others get default_pool
when DNS_REQUEST {
if { [IP::addr [IP::remote_addr] equals 8.8.8.8] } {
pool google-a
if { [IP::addr [IP::remote_addr] equals 8.8.4.4] } {
pool google-b
} else {
pool default_pool
}
}
thanks!