Would you like to learn how to show the DNS cache content using the command line? In this tutorial, we are going to show you how to display the DNS cached entries on a computer running Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 2022
• Windows 10
• Windows 11

Equipment list

Here you can find the list of equipment used to create this tutorial.

This link will also show the software list used to create this tutorial.

Windows Related Tutorial:

On this page, we offer quick access to a list of tutorials related to Windows.

Tutorial Windows - Show the DNS cache entries

Start a command-line prompt.

Windows - Command-line prompt

Show the list of DNS entries in the cache.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Send the list of cached DNS entries to a file.

Copy to Clipboard

Optionally, clear the DNS cache.

Copy to Clipboard

Congratulations! You are able to display the DNS cache on Windows.

Tutorial Powershell - Display the DNS cache

Start a Powershell command-line.

Start Powershell

Display the DNS cache.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Send the list of cached DNS entries to a file.

Copy to Clipboard

Optionally, clear the DNS cache.

Copy to Clipboard

Congratulations! You are able to display the DNS cache using Powershell.