How To Disable Caching Of A DNS Record

by [Published on 1 March 2011 / Last Updated on 9 Jan. 2010]

This article explains how you can disable caching of DNS Resource Records for a DNS Server.

By default Microsoft DNS Servers cache a record for 1 day. In some cases, you might need to disable this functionality for a DNS Server. To disable this behaviour, you can modify the below mentioned registry entry:

  • KEY Name: HKLM\System\CurrentControlSet\Services\DNS\Parameters
  • Entry Name: MaxCacheTtl
  • Type: REG_DWORD
  • Value: 0x15180 (this is the default value)

To disable the caching completely on DNS Server, set the value of MaxCacheTtl to 0x0. The DNS Server saves the records in memory area so that it can respond quickly to the Client DNS Queries for the same name. Records are deleted from the cache as per the value defined in the MaxCacheTtl registry entry. The value of this entry overrides the TTL Value set on the Resource Record. 

See Also

The Author — Nirmal Sharma

Nirmal Sharma avatar

Nirmal Sharma is a MCSEx3, MCITP and was awarded the Microsoft MVP award in Directory Services and Windows Networking. He specializes in Microsoft Azure, Office 365, Directory Services, Failover Clusters, Hyper-V, PowerShell Scripting and System Center products. Nirmal has been involved with Microsoft Technologies since 1994. In his spare time, he likes to help others and share some of his knowledge by writing tips and articles on various sites and contributing to PowerShell-based Dynamic Packs for www.ITDynamicPacks.Net solutions.

Featured Links