How To Disable Caching Of A DNS Record

by Nirmal Sharma [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. 

Featured Links