Forum Discussion
Brian_69413
Nimbostratus
Jul 09, 2013Pool member selection based on DNS entry
I am looking to use the POOL command in an iRule to select a pool member based on a DNS response from the RESOLV::lookup command. Does the POOL command require that the selected 'member' actually be ...
Kevin_Stewart
Employee
Jul 09, 2013It's fine, but realize that you're making a DNS request on EACH new HTTP request. Hopefully the DNS responses are cached between requests, but you're adding some latency nonetheless. I also have to assume that 1) "example.com" is a placeholder for something more dynamic, and 2) you're doing a sort of "reverse forward proxy" here - that is if the requested host name resolves to an IP address then send the traffic there, otherwise send to the default pool.
If the above assumptions are true, then you may also benefit from a table-based DNS cache mechanism. For example:
[pseudocode]
if table entry doesn't exist for host name {
DNS lookup hostname
Store DNS response in table
Use DNS response
} else {
Use table entry
}
[/pseudocode]
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