dns queries. RRS feed

  • Question

  • I am trying to setup so my dns query logs go to another server.  The files are created ok but it doesn't seem to be working.  In the logs I am seening  the following.

    The DNS server was unable to open file \\server\d$\dnslogs\server.txt for write. Most likely the file is a zone file that is already open. Close the zone file and re-initiate zone write.

    What security rights do I need on that folder.

    Thursday, November 5, 2009 5:54 PM


All replies

  • The problem is likely to be because the DNS Service runs (by default) under the Local System account.  You could try changing this to Network Service, but I have no idea what side effects changing the default could have.  You would want to test this thoroughly in your lab environment before going ahead in production.


    Thursday, November 5, 2009 7:21 PM
  • ...and in fact it looks like it is not supported to change the default:

    One workaround might be to write a script that copies the dns query logs off to another server at intervals.

    Thursday, November 5, 2009 7:24 PM
  • Or create null session shares ( - just keep in mind security implications...


    Thursday, November 5, 2009 7:42 PM
  • You need to create a share and allow Everyone or just the computer account access via Change and Read/Write.  You can't use the hidden share C$, D$ etc, because those are restricted to administrative users only.

    Everyone includes computer accounts that attempt remote acces via the Local System account.

    Here is another example of this issue.
    Redirection of output to Network Share fails

    Friday, November 6, 2009 2:48 AM
  • Hi,


    How’s everything going? I’m wondering if the suggestions help solving the issue. If the issue persists, please temporarily disable the antivirus on the target server and check the result.


    I look forward to your response.


    Joson Zhou

    TechNet Subscriber Support in forum

    If you have any feedback on our support, please contact

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Wednesday, November 11, 2009 6:31 AM