Share via

DNS caching windows server 2016

will phinney 21 Reputation points
Oct 26, 2020, 3:55 PM

This is an odd question, kind of a n00b, but does anybody know if there is a way to cache DNS on my windows 2016 server so that it doesn't check for new dns entires for an extended period of time? For example, I want it to keep all records for a minimum of 8 hours. This would be in the event that a major DNS carrier were to go down I would have all the cached for a minimum time.

Thanks

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,560 questions
Windows DHCP
Windows DHCP
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,044 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    Oct 26, 2020, 4:42 PM

    You're welcome.

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

8 additional answers

Sort by: Most helpful
  1. will phinney 21 Reputation points
    Oct 26, 2020, 4:08 PM

    Any DNS being served by my windows server 2016. Obviously for any public DNS it fwd's out, but I was hoping to setup caching that would hold on for a day or so.

    0 comments No comments

  2. will phinney 21 Reputation points
    Oct 26, 2020, 4:16 PM

    So @Anonymous by default, if my windows 2016 server is serving DNS , for any records and the fwder goes down, then it should still be caching those for 1 day, right? One of the major CDN's hosted DNS, but it went down and when it went down we were no longer able to access those records, however, if it was cached for 1 day this should not be the case, correct?

    0 comments No comments

  3. Anonymous
    Oct 26, 2020, 4:29 PM

    Not on your server. The cache is client side or in other words on the user's desktop pc. You can also manually adjust it via registry hack

    MaxCacheTtl
    https://learn.microsoft.com/en-us/windows-server/networking/dns/troubleshoot/disable-dns-client-side-caching#using-the-registry-to-control-the-caching-time

    Personally I think the better option is to add a more reliable forwarder (8.8.8.8, 8.8.4.4) and add more than one just in case.

    Another option is if it was only one or two and fixed name to address you could hard code in the client hosts file.
    https://support.microsoft.com/en-us/help/172218/microsoft-tcp-ip-host-name-resolution-order

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  4. will phinney 21 Reputation points
    Oct 26, 2020, 4:34 PM

    @Anonymous It just occurred to me that if my CDN goes down there is nothing I could do even if caching were set for a month as the provider is down and they're serving the content. Thanks a lot for talking me through this.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.