How to View DNS Resolver Cache?

Here we discuss everything about Computer Networking and Configuration.
Post Reply
alex
Standard User
Posts: 68
Joined: 05 Oct 2023, 17:42

How to View DNS Resolver Cache?

Post by alex »

I believe you have read my previous article about how to clear the DNS Resolver Cache on a Windows system.

Today I will teach you how to view DNS Resolver Cache stored on your laptop.

If you have not read my previous tutorial or do not know about DNS Resolver Cache, let me explain.


What is DNS Resolver Cache?

DNS Resolver Cache is a temporary storage on your computer where you can find the previous DNS lookups your computer did.

In layman's words, when you type www.SysToSys.com on a browser, your computer translates the domain name with the IP address with the help of a DNS Server.

Your computer saves the DNS information on your computer. So, when you type www.SysToSys.com a second time, your computer does not need the help of a DNS server.
Your PC stores this information in the DNS Resolver Cache.
I believe I have explained enough. Now let us check how to display the current DNS Resolver Cache.


How to Display Current DNS Resolver Cache Stored On a Computer?
We can print the current DNS Resolver Cache with the help of a DOS Command. The command is:

ipconfig/displaydns
To execute it, start DOS Prompt on your laptop with administrative privileges.

This command will show the current DNS Resolver Cache with the following information.

You can see the Remote Computer Name, Record Type, Time to Live, Data Length, Section, and CNAME Record.
I will explain each term with one example. Let me show you how to display DNS Resolver Cache on my Windows 11 laptop.

You can use the same command on your laptop with other versions of the Windows Operating System (Windows 10, Windows 7, etc.).
alex
Standard User
Posts: 68
Joined: 05 Oct 2023, 17:42

Re: How to View DNS Resolver Cache?

Post by alex »

Check DNS Resolver Cache with ipconfig/displaydns Command


  • Press Windows and S keys together to open the Windows Search box.
  • Type Command Prompt On the Search Box.
  • Run Command Prompt as administrator.
    Image
  • Type ipconfig/displaydns and press Enter key.

    Image

    Windows will Display the current DNS Resolver Cache with the necessary information like Record Name and Type, Time To Live value, Data Length, Section, and CNAME Record.
Let us examine the data printed by the Windows Operating System. Look at the chart below for each term and explanation.

  • Record Name:

    You can find the name of the remote computer from the Record Name. Knowing the remote computer's name is very helpful while troubleshooting any possible future connectivity issues.
  • Record Type:

    Record Type explains whether it is a Mail Server or a Name Server.
  • Time To Live:

    It is the TTL value when you send a ping packet to the destination computer. I will cover this topic in a separate post.
  • Data Length:

    The Data Length parameter shows the size of the packet.
  • Section:

    You will see Answer as the Section parameter.
  • A (Host) Record:

    You can see the host record IP address here.

Today you have learned the concept of DNS Resolver Cache (also called DNS Cache) and how to display it.


Let me know your feedback about this tutorial. You can read some of our similar tutorials.
  1. How to Fix Dell Laptop's Keyboard Complaints?
  2. How to Detect RAM Module Defects Earlier?
  3. How to Check RAM Speed on Windows 11?
  4. Brand New HP Laptop Freezes Randomly
  5. Why does My Laptop Restart automatically?
  6. Ping error transmit failed general failure
xavior
Global Moderator
Posts: 60
Joined: 08 Oct 2023, 15:19
Location: Brooklyn

DOS Command to View DNS Resolver Cache

Post by xavior »

Open the Command Prompt and yype the following command.

Code: Select all

 ipconfig /displaydns
Press the enter key to see the DNS Resolver Cache.
Post Reply