dnscache service logging (dnsrslvr.log)

  • Thread starter Jean-Baptiste Marchand
  • 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
 
J

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top