• Skip to main content
  • Skip to primary sidebar

Technipages

Tutorials and fixes for smartphone, gadget, and computer problems

  • Topics
    • Android
    • Browsers
    • Gaming
    • Hardware
    • Internet
    • iPhone
    • Linux
    • macOS
    • Office
    • Reviews
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About
How to Flush and Reset the DNS Cache in Windows 10

How to Flush and Reset the DNS Cache in Windows 10

March 6, 2019 by Mitch Bartlett 18 Comments

Flushing the DNS resolver cache can help resolve DNS related problems in Microsoft Windows 10. Issues would include web site not found errors or not being able to view certain web pages that have changed.

Option 1 – Windows Command

To reset the DNS resolver cache, perform the following steps:

  1. Select the “Start” button, then type “cmd“.
  2. Right-click “Command Prompt“, then choose “Run as Administrator“.
  3. Type ipconfig /flushdns then press “Enter“. (be sure there is a space before the slash)
    Windows Flush DNS command

A command box will flash on the screen for a split second and the DNS Resolver cache is cleared.


Option 2 – Windows PowerShell

  1. Select the “Start” button, then type “powershell“.
  2. Select “Windows PowerShell“.
  3. Type the following command, then press “Enter“:
    • Clear-DnsClientCache

This article applies to Windows 10, 8, 7, XP, 2000, 2003 and 2008.

Also see:
Flush and reset a client resolver cache using the ipconfig command – Microsoft


FAQ

What is the DNS Resolver Cache?

Whenever you visit a website using it’s domain name (i.e. microsoft.com), your browser is directed to a DNS server where it learns the IP address of that website. You are then directed to that website. A record of the IP address that domain name points to is created within Windows so that if you visit that same website again, the information is accessed quicker. These records that get created make up the DNS Resolver Cache.

Why would flushing the DNS Resolver Cache fix anything?

Sometimes an IP address to a site may change. If the DNS Resolver Cache has the old IP address record, it may result in your computer not being able to reach the site. Cached data can also become corrupt. Therefore, clearing it is a step you can take whenever you cannot connect to a site.

Can I view the data in the DNS Resolver Cache?

Yes. From a command prompt, you can use the “ipconfig /displaydns” command or the “Get”>-DnsClientCache” PowerShell command to view the data.

You Might Also Like

  • Windows 10: Flush ARP Cache
    Windows 10: Flush ARP Cache
  • MacOS Sierra: Flush DNS Cache
    MacOS Sierra: Flush DNS Cache
  • What Is a Pipeline Flush?
    What Is a Pipeline Flush?
  • How to Reset Network Adapter in Windows 10 Using Network Reset
    How to Reset Network Adapter in Windows 10 Using Network…
  • Windows: Clear Java Web Cache Via Command Line
    Windows: Clear Java Web Cache Via Command Line
  • How to Reset an App on Windows 11
    How to Reset an App on Windows 11

Filed Under: Windows Tagged With: Windows 10

Reader Interactions

Comments

  1. DBAAbhi says

    June 11, 2022 at 11:25 pm

    Thank you for the information.

  2. kiran says

    February 14, 2022 at 1:51 pm

    Very good information I got from here.

  3. sergei says

    July 30, 2021 at 9:20 am

    not working

  4. Vanessa says

    March 26, 2021 at 12:15 pm

    This forum/blog is extremely helpful. Thank you all for your posts.
    Windows IP Configuration – Run successfully flushed the DNS Resolver Cache but continually ask for
    C: \Users\Owner > and accepts nothing I input.

    Please Advise!

  5. The Plumber says

    March 5, 2021 at 12:08 pm

    Typing “cmd” didn’t work I had to type “run”

  6. Scheherazade says

    February 10, 2021 at 8:35 pm

    This would be very useful IF Windows 10 showed a command line when I click Start, so I could type anything at all. I can’t find a way to get to the cmd prompt.

  7. Abdullah Al Mehedy says

    February 14, 2020 at 10:14 pm

    Really It’s a Very Helpful Article. Thanks for share with us.

  8. Angela Grzywacz says

    December 16, 2019 at 4:58 am

    Hi I have just purchased a new lap top and it has problems connecting to the internet. the trouble shoot guide says : The DNS server is not responding” . please can you help

  9. DebianFanatic says

    November 1, 2019 at 3:35 pm

    If you don’t want the command window to disappear, don’t use the Run command; use the Command Prompt command instead (as Administrator).

    This will open a command terminal, wherein you can type

    ipconfig /flushdns

    and then to exit the command terminal window, either X at the top-right or enter the command

    exit

  10. F says

    August 23, 2019 at 5:23 am

    To read the data, try copy and pasting everything into a doc. You can do this as the data is loading.

    My question is about all the data that is in there after the flush. It appears to be junk but I’d like it gone so the next display dns is clean.

  11. Marge says

    August 9, 2019 at 2:37 pm

    I don’t know yet. Have to relaunch website fix was for.

  12. Chris says

    June 9, 2019 at 2:11 pm

    I tried this. Two web sites still refuse to load on any browser.

  13. Sanjay G M says

    June 6, 2019 at 4:40 am

    it is worked with the RUN command but it is run dialogue box quickly and even guys not seen the operation, if want see the operation try with the command prompt with the following command

    ipconfig /flushdns (be sure there is a space before the slash)

  14. Ronald Kriel says

    March 5, 2019 at 7:10 pm

    When using the run command “ipconfig /displaydns” the command prompt window scrolls by so fast I cannot read it. I did try “ipconfig /displaydns /p just in case it worked like directory searches. No luck.

  15. OldGoat says

    February 19, 2019 at 10:32 am

    Richard & Anika the ipconfig/flushdns window will appear and disappear quickly.. sometimes a momentary pause it the cache is rather full but otherwise sometimes you may not even witness it but it will function as per the command

  16. anika says

    February 10, 2019 at 12:55 pm

    For me happens the same, box quickly disappears ;/

  17. Michael A. Bethea says

    January 24, 2019 at 11:00 am

    Very helpful. As a Customer Service analyst for the CDC, I come across this problem from time to time. It’s good to have yet another trick in my arsenal. Thanks!

    Michael Bethea
    Atlanta, GA

  18. Richard Hutchinson says

    January 24, 2019 at 10:51 am

    When I do these steps my run diallogue box quickly disappears ,,,,,thats all.

Did this help? Let us know!

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • How to Print Labels from Excel Using MS Word Mail Merge
  • What Is NVMe Over TCP (NVMe/TCP)
  • Android Mobile Hotspot: How to Change the Password and Name
  • Windows 10: How to Force Quit and App
  • What is Dumpster Diving?
  • How to Download iOS 16 Beta 3 on iPhone or iPad
  • What is a Security Compromise?
  • Mastodon: How to DM Someone

Who’s Behind Technipages?

Baby and Daddy My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

You May Also Like

  • Cache
  • Set-Associative Cache
  • Cache Controller
  • Pipeline Burst Cache
  • Windows 95/98
  • Microsoft Windows NT
  • Microsoft Windows
  • Microsoft Windows 95

© Copyright 2023 Guiding Tech Media · All Rights Reserved · Privacy