Thomas' Tech Tips

How to view and flush DNS cache on Windows

23 October 2022 - Thomas Damgaard

Here is how to view and flush DNS cache on Windows 10

Display DNS cache

How to display cached dns lookups in Windows:

From command-line:

ipconfig /displaydns > dnscache.txt

From PowerShell …. Get-DnsClientCache

Flush DNS cache

How to flush/empty the Windows DNS cache

From command-line:

ipconfig /flushdns
Filed under: dns, powershell, tips, windows

Back to article list