dnscache service logging (dnsrslvr.log)

  • Thread starter Thread starter Jean-Baptiste Marchand
  • Start date Start date
J

Jean-Baptiste Marchand

Hello,

looking at archive of this group, it seems that the subject of dnscache
service logging was discussed in February 2003.

The dnscache service is supposed to supports logging, in a file named
dnsrslvr.log.

The following article

http://groups.google.com/groups?selm=s#PSiUVkCHA.1980@cpmsftngxa06&output=gplain

mentions the dnsrslvr.log file and says that the file must be manually
created, with as least one character in it.

However, it does not seem to work for me.

Looking at the registry value read by the dnscache service with regmon,
no evident name related to logging appear.

Does anyone know how is this supposed to work?

Thanks,

Jean-Baptiste Marchand
 
Jean-Baptiste Marchand said:
The dnscache service is supposed to supports logging, in a file named
dnsrslvr.log.

This file must be manually created under %systemroot%\system32:

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

In Windows XP and Windows Server 2003, the dnscache service no longer
runs as LOCALSYSTEM but under the NETWORK SERVICE logon session so you
need to explictly add the NTFS write permission to the file:

C:\WINDOWS\system32\>cacls dnsrslvr.log /E /G "NETWORK SERVICE":W

Then, restart the dnscache service:

C:\>net stop dnscache

C:\>net start dnscache

The dnsrslvr.log file now contains some information, including a buggy
date and typo :>

Note that the file is overwritten at each dnscache service startup so
you may want to backup it before reboot.

Jean-Baptiste Marchand
 
Back
Top