Enabling DNS debugging on Windows Server

Enable DNS debugging on Windows Server to collect information that the DNS server sends and receives.

Before you begin

The DNS role must be installed on the Windows Server.

Procedure

  1. Open the DNS Manager with the following command:
    dnsmgmt.msc
  2. Right-click the DNS server and click Properties.
  3. Click the Debug Logging tab.
  4. Select Log packets for debugging.
  5. In the log file, type the file path and name, and the maximum size.
    Important: The file path and name, must align with the Root Directory and File Pattern that you provided when you configured the Microsoft DNS log source.
  6. If you want to include DNS details in the log, select Details in the Other options section, and then select Include DNS Details in the log source.
  7. Click Apply and then click OK.