How to Display the Contents of a DNS Cache


The Windows DNS cache on your computer holds the IP addresses of visited websites for a specified period called the time to live, or TTL. When you go to a website, DNS attempts to resolve the address by matching it to an entry in your cache before going to the Internet to find the address. If you have connection problems, its helpful to know how to view and flush the DNS cache.

  • Click the Windows "Start" button. Select "Run" from the menu.

  • Type the word "cmd" in the run box. Click "OK." A window will open. At the command line prompt, type "ipconfig /displaydns" and press the "Enter" key. You will see a list of entries in the DNS cache.

  • View the results. You will see a list of entries in your DNS cache. Each entry starts with a URL that begins with "www." Next you will see the time to live. The last line, labeled "A (Host) Record" shows the IP address in your cache that corresponds to the website's URL.

  • Copy the DNS entries to a text file. Type "ipconfig /displaydns >c:\dnscache.txt." Type "exit" at the prompt.

  • Choose the "Start" button. Go to "Accessories" and "Notepad."

  • Select "File" and then "Open." Browse to the C: drive, and look for the file called "dnscache.txt." Double-click to open it.

  • Flush your DNS cache. Click "Start," then "Run." Type "cmd" in the box. At the command prompt, type ""ipconfig /flushdns." You'll get a message that the cache was successfully flushed.

Related Searches

Promoted By Zergnet


You May Also Like

  • How to Find Dns

    Need to know what DNS server you are using but have no idea how to do it. It is very easy and...

  • How to Clean the DNS Cache

    DNS stands for domain name system and is used to translate a domain name like to the IP address. Many workstation...

  • How to Flush DNS in Windows XP

    Windows XP and other operating systems use the domain name system, or DNS, to resolve human-readable domain names to numerical IP addresses....

  • How to Use Different DNS Servers on Your Home Internet

    Domain Name System servers are crucial to Internet connectivity. A DNS server contains a cross-reference list of website names and their associated...

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!