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,
you can try with LB_FAILED event!!
when HTTP_REQUEST {
if {[HTTP::uri] starts_with http} { HTTP::uri [findstr [HTTP::uri] [HTTP::host] [string length [HTTP::host]]}
set ips [RESOLV::lookup -a [HTTP::host]]
Check if the first list element was empty
if {$ips eq ""}{
Input wasn't an IP address, take some default action?
} else {
Select the IP
node [lindex $ips 0]
}
}
when LB_FAILED {
The node timed out...
}
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