Forum Discussion
Ameya_4149
Apr 23, 2012Nimbostratus
Change of Domain name in DNS response using iRule
Hi Folks,
Here is what I am trying to design:
On a LTM, using iRules, is there a way to change the domain in DNS response going through the LTM?
For example, the client makes ...
Ameya_4149
Apr 24, 2012Nimbostratus
Hi Michael,
I am on 10.2.2 HF3
So my DNS is a Master Slave combination. The F5 forwards all the DNS queries to the Slave DNS. The Master DNS has one zone file which contains 3 domain entries for the same PTR query.
So when the client does a PTR query to the DNS, it is mapped to 3 different domain entries (which the DNS does a round robin between)
Now, what I want to make sure is, when client belongs to pool A, it should get a DNS response from one specific domain
For ex. if client ip equals Pool A, then domain d1.com
if client ip equals Pool B, then domain d2.com
if client ip equals Pool C, then domain d3.com
I cannot do this at the DNS server so trying to implement the fix at the ltm. I was planning to implement the iRule so that it checks the Answer field of the DNS response packet, depending on which slave DNS the response came from, it will replace the domain in the answer field.
Thanks,
Ameya
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