Forum Discussion
andrew_witherid
Nimbostratus
Apr 19, 2017Applying a health monitor with DNS returned IP address
HI all,
i am looking to monitor a Destination selection based upon a DNS lookup, our current setup takes a HTTP request, extracts the Destination URL and preforms a DNS lookup, once the IP is r...
Stanislas_Piro2
Cumulonimbus
Apr 19, 2017Hi,
Even if I gave you a solution, I think it is obviously not the best practice. create a pool with pool member is as easy as create a DNS record.
The best solution is still to create pools with same name as host :
tmsh create ltm pool www.company.com monitor tcp members add { www.company.com:443 { fqdn { name www.company.com autopopulate enabled } } }
then, use the following irule:
when HTTP_REQUEST {
if {[HTTP::uri] starts_with http} { HTTP::uri [findstr [HTTP::uri] [HTTP::host] [string length [HTTP::host]]}
if {[catch {pool [getfield [HTTP::host] ":" 1]}]} {
HTTP::redirect "https://www.company.com/"
}
}
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