Forum Discussion
Wasfi_182818
Altostratus
Sep 20, 2016i-rule on an LTM for returning a DNS response based on the zone value in the query
Hi;
Let's say I have an LTM and a virtual server of type DNS load balancing a pool of DNS servers. Can I have an i-rule which states that if the DNS A record query is to a record in the zone abc...
crodriguez
Sep 20, 2016Ret. Employee
You are quite restricted in which DNS events and commands you can use without a GTM or DNS Services add-on license. I believe the only event you can trigger an iRule on is DNS_RESPONSE. You have access to the DNS::answer and DNS::type commands, so I suppose you could parse the answer on the DNS_RESPONSE event to see if the response includes an A record in zone in abc.net. If so, you can replace DNS::answer with the answer of your choice. See https://clouddocs.f5.com/api/irules/DNS.html for more details.
 
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects