pedinopa_170325
Apr 03, 2017Nimbostratus
DNS Irule
I am writing an irule that will listen to DNS requests and if a client IP is in a DG it will get an altered A (forwarded on to a Pool on the GTM) record otherwise the query will be forwarded on to the authoritative servers.
In addition to the irule itself, would I place it on the UDP DNS listner?
when DNS_REQUEST { if { ([class match [IP::client_addr] equals My-DatGroup]) } { switch -glob [string tolower [DNS::rrname]] { "host.domain.com" { pool My-GTM-Pool } } } }