Microsoft KB Archive/245469

= How to Prevent a DNS Server from Caching Records from Recursive Queries =

Article ID: 245469

Article Last Modified on 2/24/2007

-

APPLIES TO


 * Microsoft Windows NT Server 4.0, Terminal Server Edition Service Pack 4
 * Microsoft Windows NT Server 4.0, Terminal Server Edition Service Pack 5
 * Microsoft Windows NT 4.0 Service Pack 4
 * Microsoft Windows NT 4.0 Service Pack 5
 * Microsoft Windows NT 4.0 Service Pack 6
 * Microsoft Windows NT 4.0 Service Pack 6a
 * Microsoft Windows NT 4.0 Service Pack 4
 * Microsoft Windows NT 4.0 Service Pack 5
 * Microsoft Windows NT 4.0 Service Pack 6
 * Microsoft Windows NT 4.0 Service Pack 6a

-



This article was previously published under Q245469



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SUMMARY
As a Domain Name System (DNS) server performs name resolution for a name query, it caches a copy of the data. This is retained for the time period specified by the Time To Live (TTL) value. By default, the data is kept in memory until the TTL time period has expired, DNS has been stopped, or the MaxCacheTtl value on the DNS server has expired, whichever occurs first.



MORE INFORMATION
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To prevent a Microsoft DNS server from caching records from recursive queries:  Start Registry Editor (Regedt32.exe). Locate the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNS\Parameters

 On the Edit menu, click Add Value, and then add the following value:

Value: MaxCacheTtl

Data Type: DWORD

Data value: 0

 Click OK. Quit Registry Editor. Restart the DNS server.</li></ol>

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

198408 Microsoft DNS Server Registry Parameters, Part 1 of 3

Keywords: kbinfo kbenv KB245469

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.