windows黑科技-记录dns log

昨天看到袁哥微博,看到了这篇,今天测试了一下,记录下来:

 

The DNS Client service does not log by default. However, if a file named %systemroot%\system32\dnsrslvr.log is manually created, this file is used by the service to log debug information:

C:\WINDOWS\system32\>echo "" > dnsrslvr.log

 

In Windows XP and Windows Server 2003, NTFS write permissions for the NETWORK SERVICE SID must be explictly given:

C:\WINDOWS\system32\>cacls dnsrslvr.log /E /G "NETWORK SERVICE":W
posted @ 2017-08-15 15:52  sevck  阅读(1213)  评论(0编辑  收藏  举报