Forum Discussion
walou12_113339
Nimbostratus
Jun 25, 2014help with a DNS response irule
HI,
I'm looking for help with an irule that will be attached to a DNS VIP on a LTM v11.x. Its purpose is to supply a fixed response to a particular client querie, all other queries go to the DNS ...
kunjan
Nimbostratus
Jun 25, 2014Try this:
when DNS_REQUEST {
set ttl 1800
set A "[DNS::question name]. $ttl [DNS::question class] [DNS::question type]"
if { [string tolower [DNS::question name]] ends_with "msftncsi.com" } {
DNS::answer insert "$A 125.56.204.104"
}
else {
pool internal-dns
}
DNS::return
}
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