January 16th, 2013

PowerTip: Get DNS Server Cache Details

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.