Forum Discussion
Ken_B_50116
Cirrostratus
Jun 12, 2012How to select a pool based on client's hostname?
I need to write an iRule that will select a pool based on the requesting client's DNS hostname. I know an iRule can perform a reverse DNS lookup to get the client's hostname from the source IP addres...
hoolio
Cirrostratus
Jun 12, 2012What if I forget the datagroup idea and just use text matching like this...
You could use a switch statement to evaluate multiple strings that aren't in a data group:
switch -glob -- [string tolower $ptr] {
"*wtsappprod" {
pool prod_pool
}
"*wtsapp" {
pool preprod_pool
}
}
I should have the caching -ptr example ready in a little while.
Aaron
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
