Forum Discussion

Kevin_Nail's avatar
Kevin_Nail
Icon for Nimbostratus rankNimbostratus
Jul 26, 2012

GTM DNS iRule

is it possible to use an iRule in GTM to make a decision about which IP to hand back based on the contents of the URL?

 

 

For example:

 

 

client 1 is in Singapore and wants to access a resource http://someapp.com/resource1

 

he is given IP 25.11.4.4

 

 

client 2 is in the US and wants to access a resource http://someapp.com/resource2

 

he is given IP 10.11.4.5

 

 

client 1 travels to US and tries to access his resource http://someapp.com/resource1

 

we want him to get IP 25.11.4.4

 

 

Is this possible?

 

 

Thanks,

 

Kevin

 

 

2 Replies

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    GTM doesn't know about URL's. It only knows about DNS requests. And only if the users have different LDNS (Local DNS) servers can GTM make a decision... When GTM gets the request, all it knows is the IP address of the client LDNS server. It doesn't know the clients actual IP address. So if your clients all happen to use the same DNS server, GTM has no way to know anything different about them.

     

     

    However if your resource is on LTM, then the LTM can make a decision based on which client it is using something like a cookie etc... You can see this happening with some global sites that give you a local page based on a cookie that was set previously...

     

     

    H