DNS query logging

I need to enable query logging on my GTM. In BIND we are use to enabling DNS query logging, I need to do the same type of thing on the GTM. Can I do this command line and/or irule? If I do it through an I rule where will it get logged?

Is this what you’re looking for :

or this:

I dont think either are quite what I am looking for. I am not trying to see which LTM is being used (there is not even a LTM node in use here) all I am looking for is how to see when and if a specific resource record is being used. On my GTM I use zone runner and have many zones. I need to log access to a specific zone for its SIP records.

OK. so solution 1 above is for logging queries to wide_ips specifically. not your case. solution 2 is for logging ALL queries, so must be your case.

solution 3 would indeed be an iRule to inspect the queries and log only what you want logged.