Forum Discussion
DNS Irule When DNS Request
I'm using the following IRULE to return a public IP that is NAT to a virtual server in our Atlanta Datacenter. Is there anyway I can modify this to return an IP of our Kansas City Datacenter only if the Virtual Server in Atlanta is down? Here is the IRULE:
when DNS_REQUEST { if {
[DNS::rrname] eq "domain.com" } { host 256.xx.xxx.xxx }
}
Please note we have v. 10.0.1. We have 2 GTM modules, one in ATL and one in KC. We are using Global load balancing but the problem is that the IP addresses returned in DNS are the Virtual IP's only unless we use the above IRULE. We need the GTM's to hand out public IP's only and route traffic always to Atlanta DC unless the VIP is down then route to KC DC. Any advise you can give is appreciated. Support has been unable to assist us in getting this to work.
Thanks,
Marc
- smp_86112
Cirrostratus
Hi Marc, you do not need to use an iRule to get this behavior. This behavior (returning the IP address one VIPB if and only if VIPA is unavailable, and begin returning VIPA when it recovers) is achieved using a type of Load Balancing Method named "Global Availability" - as opposed to Round Robin. - pagema1_69881
Nimbostratus
Thanks for the reply. We are using global availablity however the F5 always only returns the IP of the virtual server rather than the public IP. We have not been able to get it to return the PUBLIC IP without the IRULE. - smp_86112
Cirrostratus
Wow, I completely ignored your original post, didn't I? Sorry about that. This question is a bit out of my league. - The_Bhattman
Nimbostratus
Hi Marc, - pagema1_69881
Nimbostratus
Thanks. I just read your other post where you stated just that and helped someone else. This worked and solved our problem. We have conquered GTM!!!!! Thanks much for your consistent feedback in these forums. The help is priceless.
Recent Discussions
Related Content
* 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