Petri Newsletter Sign-up
Office 365 Insider

Here at, we get IT — and so can you. Subscribe today to stay informed and knowledgeable regarding the latest on IT.

    See All Petri Newsletters

    How can I disable the caching of failed DNS lookups in Windows 2000/XP/2003?

    Posted on by Daniel Petri in DNS

    Windows 2000/XP/2003 added the ability to cache DNS lookup results in the client’s cache. This cache can be viewed by typing ipconfig /displaydns in the command prompt:

    and so on.

    While being a good idea as this lowers the required amount of DNS queries on the LAN and to the ISP’s DNS, whenever a query returns a negative answer (i.e. the answer was “I don’t know”), the client also caches this information.

    If this answer was due to a misconfigured entry in DNS, and you, as administrator, have fixed it, it won’t matter for that specific client, as the negative answer is already stored in its cache. It’s like the client is telling itself “why should I bother asking again, I know that the DNS doesn’t have an answer for me”…

    You can manually clean this cache by running the ipconfig /flushdns command from the command prompt:

    But in order to totally avoid this situation, you could simply configure the client to not cache any negative DNS lookup results.

    To do so follow these steps:

    1. Open Registry Editor.
    2. In Registry Editor, navigate to the following registry key:
    3. Create the following value (DWORD):
      and give it a value of 0 (zero).

      Note: As always, before making changes to your registry you should always make sure you have a valid backup. In cases where you’re supposed to delete or modify keys or values from the registry it is possible to first export that key or value(s) to a .REG file before performing the changes.

    4. Close Registry Editor.



    Rename or Delete Special Folders


    Don't have a login but want to join the conversation? Sign up for a Petri Account