TechLearner
Jan 26, 2020Nimbostratus
Forward DNS query to the specific node/pool based on query string - iRule
Hello Everyone,
I have a scenario where the DNS query need to send to the specific node/pool based on a query string.
Example, when user trying to resolve xyz-internal.example.com, the request should be send to the certain node/pool.
Is there any way that, iRule can match the specific string (internal) and based on that forward the request or it can be achieved in any other way?
I have tried on LTM in the LAB but seems like not working.
when DNS_REQUEST {
if {[DNS::question name] matches "internal"} {
node "10.10.10.10"
} else {
node "23.81.50.150"
}
}