Forum Discussion
TechLearner
Nimbostratus
Jan 26, 2020Forward 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 shou...
Yoann_Le_Corvi1
Cumulonimbus
Jan 27, 2020Hi,
Try :
when DNS_REQUEST {
if {[DNS::question name] matches "internal"} {
host "10.10.10.10"
} else {
host "23.81.50.150"
}
}- TechLearnerJan 27, 2020
Nimbostratus
Hi Yoann,
I've tried but the below error occurred.
error: [undefined procedure: host][host "10.10.10.10"]
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
