Registry Home > Network > Clients

Change the Client-Side DNS Caching Timeouts (Windows 2000/XP/.NET) Popular

Windows contains a client-side Domain Name System (DNS) cache with stores recent domain lookup entries. If you are experiencing caching or lookup problems you can disable or change the cache timeout.

This tweak can be easily applied using WinGuides Tweak Manager.
Download a free trial now!

Open your registry and find the key below.

To change the DNS cache timeout for positive responses (where a lookup was successful).

Windows 2000 - Create or modify the DWORD value called "MaxCacheEntryTtlLimit".

Windows XP and .NET Server 2003 - Create or modify the DWORD value called "MaxCacheTtl".

Set the value to equal the required timeout in seconds the default is 86400 (1 day).

To change the DNS cache timeout for negative responses (where a lookup failed).

Windows 2000 - Create or modify the DWORD value called "NegativeCacheTime".

Windows XP and .NET Server 2003 - Create or modify the DWORD value called "MaxNegativeCacheTtl".

Set the value to equal the required timeout in seconds the default is 300 (5 minutes).

Restart Windows for the changes to take effect.

Registry Editor Example
|NameTypeData|
|(Default)REG_SZ(value not set)|
|MaxCacheEntryTtlLimitREG_DWORD0x00000001 (1)|
|NegativeCacheTimeREG_DWORD0x00000000 (0)|
-
|HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscach...|
-
Registry Settings
System Key: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters]
Value Name: MaxCacheEntryTtlLimit, NegativeCacheTime
Data Type: REG_DWORD (DWORD Value)
Value Data: Time in Seconds

>> Recommended Download - check, repair and optimize your registry now with Registry Mechanic <<

Disclaimer: Modifying the registry can cause serious problems that may require you to reinstall your operating system. We cannot guarantee that problems resulting from modifications to the registry can be solved. Use the information provided at your own risk.

Last modified: April 4, 2003