Forum Discussion

Drew_Berendts_2's avatar
Drew_Berendts_2
Icon for Altostratus rankAltostratus
Feb 13, 2006

DNS Virtual Server Pool Redirection

I am looking for a bit of sample code that will allow me parse an incoming client DNS query (running UDP/53 virtual server on BigIP 9.x) and then redirect the incoming query to one pool or another based on the hostname that is being queried. I have looked through the iRules 9.x forums and I have seen a couple ways of redirecting traffic to one pool or another, but I have yet to find a bit of sample code that allows one to parse an incoming UDP/53 client DNS query. Thank you much to any one for any feedback on this matter.

 

 

Regards,

 

Drew B.

1 Reply

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    I'm not sure I know of any sample code that does exactly that. Basically, though, what you'd be looking to do is parse the UDP packet coming through the BIG-IP and search for a given string, then perform whatever actions you'd like based on that search result.

     

     

    I know there are a couple of good UDP examples around, and here's a good example of someone analyzing the UDP packet contents:

     

    Click here

     

     

    HTH,

     

    -Colin