Hi,
Welcome to our new Microsoft Q&A Platform.
If you want to enable DNS diagnostic logging, you could refer to the following article:
About the Negligible Performance Impact of Enabling,
"A DNS server running on modern hardware that is receiving 100,000 queries per second (QPS) can experience a performance degradation of 5% when analytic logs are enabled. There is no apparent performance impact for query rates of 50,000 QPS and lower"
For your reference:
Best Regards,