Forum Discussion
Raj_135327
Nimbostratus
Apr 22, 2017irule to resolve DNS query ( no dns licence on LTM)
I have a VIP to answer dns queries. This VIP forwards all dns queries to 8.8.8.8. Here is the deal i don't want it to forward dns queries say for example: to 8.8.8.8 and want this to be resolved to ...
oscarnet_69487
Nimbostratus
Apr 22, 2017HI
try this irule apply to your dns service virtual server
when DNS_REQUEST {
if { ([DNS::question name] equals "www.test1.com") } {
DNS::answer insert "[DNS::question name]. 111 [DNS::question class] [DNS::question type] 1.1.1.1"
DNS::return
} else {
discard
}
}
have a good day!
Samir_Jha_52506
Noctilucent
Apr 22, 2017I guess, DNS iRule only works if dns license provisioned in LTM. Correct me if I am wrong?
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
