Ticker

6/recent/ticker-posts

How to View DNS Resolver Cache?

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.).



Check DNS Resolver Cache with ipconfig/displaydns Command


  1. Press Windows and S keys together to open the Windows Search box.

  2. Type Command Prompt On the Search Box.

  3. Run Command Prompt as administrator.

    Print current DNS Cache on your device

  4. Type ipconfig/displaydns and press Enter key.

    ipconfig/displaydns

    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.

Post a Comment

0 Comments