PowerTip: Get DNS Server Cache Details

Doctor Scripto

Summary: Use Windows PowerShell to get details about the DNS server cache.

Hey, Scripting Guy! Question How can I find information such as the maximum TTL on my remote DNS server running Windows Server 2012?

Hey, Scripting Guy! Answer Use the Get-DNSServerCache function from the DNSServer module, as shown here.

18:34 C:\> Get-DnsServerCache -Cn dc3


MaxTTL                           : 1.00:00:00

MaxNegativeTTL                   : 00:15:00

MaxKBSize                        : 0

EnablePollutionProtection        : True

LockingPercent                   : 100

StoreEmptyAuthenticationResponse : True


Discussion is closed.

Feedback usabilla icon