Forum Discussion

pstoianov's avatar
Icon for Altocumulus rankAltocumulus
Sep 10, 2022

LTM as balancer of pool of DNS servers

Hello all, 

I would appreciate if you can point me to right direction as I'm out of ideas in this regard:

F5 LTM has VS ( with pool of DNS servers (, when client sends query to, I would like keep the originator's ip address for additional processing on DNS nodes. This does not work as nodes are answering with source IP 2.2.2.xx.

Is there any way to achieve this with F5 LTM? 

On nodes, I have lots of ACL, QPS limits per ACL, DNS spoof in the case of VPN connection used which prevents me of using Source Translation - automap.

P. S. My F5 does not have licenses for DNS/GTM but for LTM/ASM. 

5 Replies

  • There is really only one way to do this from a network perspective.  If you put an interface/IP on the F5 in the network.  Then you would have to make the default gateway of the DNS servers be the IP address created in For further HA you would need 3 IP addresses in, one for each F5 LTM and then a floating address.  The default gateway would be the floating address.  This will force all the traffic going to the DNS boxes to come back through the LTM to keep the TCP Handshakes functional.  

    To further complicate I have done scenarios where the DNS box has multiple routes on it.  The default route goes to the BIG-IP LTM but then other routes for internal clients to a different router.  But to accomplish exactly what you have asked I would use above method and make the LTM the default gateway of the DNS boxes.

  • Yep, seems to me that EDNS0 is the way to go as described RFC7871. Unfortunately, my HA boxes doesn't have GTM.