Forum Discussion
Chris_Roy_10356
Nimbostratus
Jul 26, 2006DNS Rewrite
Is there any way to hijack a DNS request or rewrite a DNS response through an LTM iRule?
I'm trying to get DNS to respond to internal requestors with a private NAT address (that may or may not b...
Colin_Walker_12
Aug 03, 2006Historic F5 Account
You could certainly write an iRule on LTM to grab the traffic heading outbound and re-write the payload contents to use the response address you want. It just wouldn't be quite as straight-forward as on GTM. You'd have to do some string matching (regex, scan, etc.) against the payload and then rewrite where necessary.
There are a few examples of rewriting packet payload contents (not all of them are referring to DNS packets, but the idea is the same), at least one of which is in the Docs & Tips section. I'd check a couple of those out to get started.
Colin
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
