Subscribe to Windows IT Pro
October 24, 2002 12:00 AM

How can I configure how long the DNS cache stores positive and negative responses?

Windows IT Pro
InstantDoc ID #27024
Rating: (2)

A. By default, Windows stores positive responses in the DNS cache for 86,400 seconds (i.e., 1 day) and stores negative responses for 300 seconds (5 minutes). To modify these values, perform the following steps:

  1. Start a registry editor (e.g., regedit.exe).
  2. Navigate to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters registry subkey.
  3. From the Edit menu, select New, DWORD Value.
  4. Enter the name MaxCacheEntryTtlLimit to change the positive cache period or the name NegativeCacheTime to change the negative cache period, then press Enter.
  5. Double-click the new value, set it to the desired number of seconds (e.g., if you entered the name NegativeCacheTime, you could set the value to 0 to stop Windows from caching any negative responses), then click OK.
  6. Repeat step 5 for the other value, if required.
  7. Close the registry editor.
  8. Reboot the computer for the changes to take effect.

Related Content:

ARTICLE TOOLS

Comments
  • DANIEL
    6 years ago
    Mar 02, 2006

    You don't say which dns cache. the one on the workstation/server or the one in the DNS service.

  • Anonymous User
    7 years ago
    Jan 07, 2005

    really helpfull . will try it out practically ..

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.