Does anyone have an GTM DNS iRule that can be used to return three A records? I need a way to load balance databases between datacenters without changing their existing SVIP IP addresses. The LTMs have no connections (VLANs, self IPs) to the databases. We don’t want to pass this traffic through our LTMs. Here is what I have tried to get working: I have not been able to get this to return three IP addresses: when DNS_REQUEST { Log query details log local0. “[DNS::question name]: [DNS::question name],\ [DNS::question class]: [DNS::question class], [DNS::question type]: [DNS::question type]”
Generate an answer with two A records
DNS::answer insert "[DNS::question name]. 111 [DNS::question class] [DNS::question type] 10.x.x.x"
DNS::answer insert "[DNS::question name]. 111 [DNS::question class] [DNS::question type] 10.x.x.x"
Stop further processing of the query after this iRule and send the answer to the client
DNS::return
I like…but that means I would have to create VIPs on the LTM for the pools? That’s a lot of VIPs since we have approximately 40 databases. ??? I mean I will do it if I have to but Have you ever had success modifying zone runner? I was able to create the record in zonerunner but zonerunner sometimes stops working when I query the record because of a bug limiting the FQDN to less than 25 characters. Again, any help is much appreciated.
I believe I need an LTM license to do this. Under local traffic I don’t have the virtual servers menu. I only see the option to add LTM VIPs as pool members in my GTM. Please clarify.