Forum Discussion
Tony_Li_89728
Jan 18, 2006Historic F5 Account
DNS Response Rewrite
Can we modify the payload of dns response?
The customer would like to check the dns response,if there has the "DNS: Response Code: 3 (Name Error)" in the payload then bigip will modify the ...
Colin_Walker_12
Jan 19, 2006Historic F5 Account
Well, you can certainly modify the response, as it's passing through the BIG-IP. As far as the DNS response status, there isn't currently an iRules variable in place for that information. This means you'll have to read through the information coming back from the DNS server and decipher the status yourself using a scan, string match, etc.
Once you do this, you'll add some logic to alter the IP address if necessary.
I'd start by taking a look at the UDP::payload, UDP::respond and "string match" commands. Note that the string matching commands in iRules are not F5 specific, they are standard TCL syntax. For a good tcl reference I recommend - Click here - http://tmml.sourceforge.net/doc/tcl/index.html
HTH,
-Colin
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