I believe unifi offers aggregated dns logs ootb but you could always set up more detailed ones on the gateway itself.