Forum Discussion
Domwilko
May 02, 2019Altocumulus
Simple iRule For DNS Intercept on Big IP DNS
Within our network we are using Big IP DNS for all of our DHCP clients, so all DNS requests come to the BIG IP DNS first for resolution. If there as no Wide IP setup for the DNS request, then the req...
R__Hickman_1172
May 02, 2019Nimbostratus
If you wanted to do a DataGroup - I took @youssef's code and modified it to use DG. Your DG would need to be the string format as well as exist before you create the irule. Works like a champ for me.
when DNS_REQUEST {
set type [DNS::question type]
if {$type equals "A" } {
set host [DNS::question name]
if { [class match $host equals dns_List_DG ] } {
DNS::answer clear
DNS::answer insert "[DNS::question name]. 111 [DNS::question class] [DNS::question type] [class match -value $host equals dns_List_DG ]"
DNS::return
}
}
}
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