Forum Discussion
Implementing F5 DNS and Creating Custom CNAME Redirects
Your approach to use an iRule on F5 DNS to manipulate DNS requests and responses is correct. However, the issue you're facing might be due to how DNS resolution works and the context in which iRules operate. The iRule you provided is designed to modify the DNS request for "example.com" to "example.2.com", and then create a CNAME record in the DNS response. When you perform a DNS lookup for "example.com", the lookup is redirected to "example.2.com". However, this does not necessarily mean that "example.2.com" will resolve correctly.
If I try to consume test.example.2.com it works, however, when I verify the nslookup output for test.example.com it doesn't show the cname or even an answer, it's just empty, however verifying the logs the irule is creating the cname record but looks like it's not returning the answer to the client
Recent Discussions
Related Content
* 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