For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Vladyslaw's avatar
Vladyslaw
Icon for Nimbostratus rankNimbostratus
Feb 26, 2020

iRule: How to redirect dns request for specific domain to another pool?

Hello,

I am looking for a way to redirect requests for specific domain to another DNS pool.

I tried to use this iRule, from the log I see the match but from Wireshark there is still responses from default DNS server.

when CLIENT_DATA {
    if {[UDP::payload] contains "cisco"} {
      log local0. "match [UDP::payload]"
      pool Cloud_Flare_Pool
      }
    else {
           log local0. "not match [UDP::payload]" 
      }
}

2 Replies

  • Thanks for the answer,

     

    The code that I wrote above worked after I cheked DNS profile in Virtual Server.