DNS Troubleshooting

If the DNS event sources experience an error, the event source icon will turn to a yellow warning or red failure. Moving the mouse over the icon will reveal the details of the error. Typical errors of this sort are failure to connect to the server, bad credentials, or failure to find the file or folder configured in the event source.

Use one of the following to help solve the problem:

Common Solutions

Sometimes the DHCP and DNS event sources might not be reading any logs even if they don't show a warning or error. In this situation, try the following tests.

Microsoft DNS Log File has 0 Bytes

It appears in some cases, whenever a log file needs to roll over, the old file cannot be deleted because the collector has it open. There is an article that discusses the issue here: https://nxlog.co/disappearing-windows-dns-debug-log.

To temporarily fix this issue:

Error: It has been at least 120 minutes since the last event

The DNS event source sometimes can stop working and produce the above error.

However, the error is false because the dns log has not stopped logging. The log file can be opened from the collector, so there is no apparent reason for the error. A review of the collector.log may show the following error: Read already in progress, consider increasing scan interval

To fix this error and to allow the collector to read the file again:

  1. Check the collector.log. Start at the bottom of the log and search upwards for the DNS server name, and look for the following line:

FILE READ: smb://DNSServerNameHere/ShareName/dnsdebug.log [176748106 -> 176837156, Bytes Read: 89050]

If the file contains errors, an indication that the log is not being read, or the "read already in progress" messages, complete the following in order:

  1. Verify that an antivirus software has not locked the file. The folder where the log is located should be excluded from being scanning by AV software.
  2. When configuring debug logging on the DNS server, there is an option to configure a large file size before it can "roll over." If the file becomes very large before it rolls over, decrease the log file size.
  3. Reboot the collector/restart the Rapid7 Collector service.
  4. Restart the DNS Server service.
  5. Reboot the DNS server.
  6. Delete the event source and recreate it.

Once the log is readable to the collector, you do not need to complete any additional steps. If the error persists, please contact Rapid7 for Support.