Forum Discussion
dearsanky
Nimbostratus
Mar 10, 2016Redirect 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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects