Forum Discussion

pagema1_69881's avatar
pagema1_69881
Icon for Nimbostratus rankNimbostratus
Jun 09, 2010

DNS Irule When DNS Request

Hello,

 

 

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

 

 

 

  • 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.
  • 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.

     

  • Wow, I completely ignored your original post, didn't I? Sorry about that. This question is a bit out of my league.
  • Hi Marc,

     

    There should be a translation ip address field in the virtual section. You should be able to enter the public address of the virtual address.

     

     

    I hope this helps

     

    Bhattman
  • 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.

     

     

    Best,

     

    Marc