Mar 27, 2026 - For details about updated CVE-2025-53521 (BIG-IP APM vulnerability), refer to K000156741.

Forum Discussion

dearsanky's avatar
dearsanky
Icon for Nimbostratus rankNimbostratus
Mar 10, 2016

Redirect the Nxdomain response

Hi, I've got one iRule to redirect the nxdomain response, but whenever i try it to my lab the rule does not work, please let me know if someone can give any idea on it. I want to redirect it to google.page. using TMOS version 11.6

Thanks....

when DNS_RESPONSE {
 if { [DNS::ptype] == "NXDOMAIN" } {
    DNS::answer insert "[DNS::question name]. 60 [DNS::question class] [DNS::question type] x.x.x.x"
       } 
    }

1 Reply

  • Hi dearsanky,

     

    you have to overwrite the DNS response code "NXDOMAIN" to "NOERROR".

     

    when DNS_RESPONSE {
        if { [DNS::header rcode] eq "NXDOMAIN" } {
            DNS::header rcode NOERROR
            DNS::answer insert "[DNS::question name]. 60 [DNS::question class] [DNS::question type] 1.1.1.1"
        } 
    }

    Cheers, Kai