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 -...
Mariusz_B
Nimbostratus
Jan 20, 2015Hi Brad,
I have now developed this:
when DNS_REQUEST {
if { [IP::addr [IP::remote_addr] equals $::All_Client_IPs] } {
if {[LB::status vs Client_VPN_1] eq "up" } {
host 1.1.1.1
} else {
host 2.2.2.2
}
}
}
but it doesn't work. Looks like is not possible to use data groups from the GSLB level.
I have successfully tested this instead:
when DNS_REQUEST {
if { [IP::addr [IP::remote_addr] equals 10.10.10.10] } {
if {[LB::status vs Client_VPN_1] eq "up" } {
host 1.1.1.1
} else {
host 2.2.2.2
}
}
}
it's ok, but bit painful to use multiple "or" statements for multiple network ranges/IPs
Is there any workaround for that?
Many thanks
Mariusz
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