Forum Discussion

davidq_20688's avatar
davidq_20688
Icon for Nimbostratus rankNimbostratus
May 24, 2011

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.

 

1 Reply

  • 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