How can I configure how long the DNS cache stores positive and negative responses?
October 23, 2002
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:
Start a registry editor (e.g., regedit.exe).
Navigate to the HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesDnscacheParameters registry subkey.
From the Edit menu, select New, DWORD Value.
Enter the name MaxCacheEntryTtlLimit to change the positive cache period or the name NegativeCacheTime to change the negative cache period, then press Enter.
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.
Repeat step 5 for the other value, if required.
Close the registry editor.
Reboot the computer for the changes to take effect.
About the Author
You May Also Like