iRule for DNS rewriting

Hi, I’m fairly new to iRules and the company I work for has asked me to use the F5 to perform DNS rewrites.

The F5 will see DNS requests coming in via a Virtual server, and under some conditions (to be confirmed) I need to change the response, e.g. from the IP sent in, return to another IP of our customer care site.

Don’t really know where to begin, any help would be much appreciated.

Hi David,

You can parse the binary content using iRules. Nat has added a couple of comprehensive examples to the Codeshare:

http://devcentral.f5.com/wiki/default.aspx/iRules/DNS\_decoding.html

http://devcentral.f5.com/wiki/default.aspx/iRules/fast\_DNS.html

Aaron