Forum Discussion

Vashkevich_2555's avatar
Vashkevich_2555
Icon for Nimbostratus rankNimbostratus
Mar 24, 2016

How to translate IP in a standard query DNS response in GTM

Hello all, I've got a task to translate a real LTM IP virtual address in a GTM/DNS response. So, we have a wide IP,a pool with two IPs of LTMs (IP1/2), IP3 of GTM (a listener). When the listener (IP3) receives a DNS-query , it checks availability of all LTMs(IP2/3) in the pool and the load balancing method.After that, a DNS standart query is created by the listener (IP3) where the answers address is the address of LTMs (IP1/2). I have a map of the translation of LTMs to fake IPs. It means LTM IP1= fake IP11, LTM IP2 =fake IP22. So, the DNS standart query should be changed where the answers address is the fake IP11 instead of IP1 or the fake IP22 instead of IP2. As far as I understand It's possible to make by iRULES. After creating the iRULES It should be added to the wide IP. The DNS_RESPONSE should be used. Can you help me to write iRULE for this case.