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]" 
      }
}