I have a similar requirement - need to do DNS proxying on an LTM. I want to list internal domains (around 20 of them) in a class and send to internal DNS pool. All other requests to ISP DNS pool.
Running 9.4.6 - would something like this work now?
when DNS_REQUEST {
if { ([DNS::rrtype] eq “A”) and (matchclass [DNS::rrname] eq $::dnsinternal)