Forum Discussion
Mariusz_B
Nimbostratus
Jan 16, 2015GTM iRule - answering DNS based on some criteria.
Hi,
I need some help with developing an iRule for DNS queries.
Requirements:
check IP range a request came from (this is the easy bit which I have done already)
check monitor status -...
Brad_Parker
Cirrus
Jan 16, 2015How about somthing like this:
when DNS_REQUEST {
if { [IP::addr [IP::client_addr] equals 10.1.10.136/29] or [IP::addr [IP::client_addr] equals 10.10.10.64/27] or [IP::addr [IP::client_addr] equals 10.1.10.96/28] } {
if {LB::status vs up} {
host 1.1.1.1
}
else {
host 1.1.1.2
}
}
}
You may also try using a data group if you ever decide to expand or change the IPs your are checking for.
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