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
【版权所有@Sevck 博客地址http://www.cnblogs.com/sevck】 可以转载,注明出处.