Ensure that All VPC Network has DNS logging enabled.
Cloud DNS logging records the queries coming from Compute Engine VMs, GKE containers, or other GCP resources provisioned within the VPC to Stackdriver.
Create Cloud DNS Server Policy with logging enabled for VPC Networks