• Skip to main content
  • Skip to primary sidebar

Technipages

Tutorials and fixes for smartphone, gadget, and computer problems

  • Topics
    • Android
    • Gaming
    • Hardware
    • Internet
    • iOS
    • MacOS
    • Office
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About Technipages
How to Flush and Reset the DNS Cache in Windows 10

How to Flush and Reset the DNS Cache in Windows 10

By Mitch Bartlett 17 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
  • 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
  • Easily Reset Password in Windows 7
    Easily Reset Password in Windows 7
  • What is the CPU Cache?
    What is the CPU Cache?
  • How to Clear the Cache in Google Chrome
    How to Clear the Cache in Google Chrome
  • Dropbox: How to Limit the Size of Your Cache
    Dropbox: How to Limit the Size of Your Cache
  • How to Completely Disable Cache in Google Chrome
    How to Completely Disable Cache in Google Chrome

Filed Under: Windows Tagged With: win7, Windows 10

Reader Interactions

Comments

  1. kiran says

    February 14, 2022 at 1:51 pm

    Very good information I got from here.

  2. sergei says

    July 30, 2021 at 9:20 am

    not working

  3. 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!

  4. The Plumber says

    March 5, 2021 at 12:08 pm

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

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

  6. Abdullah Al Mehedy says

    February 14, 2020 at 10:14 pm

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

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

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

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

  10. Marge says

    August 9, 2019 at 2:37 pm

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

  11. Chris says

    June 9, 2019 at 2:11 pm

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

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

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

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

  15. anika says

    February 10, 2019 at 12:55 pm

    For me happens the same, box quickly disappears ;/

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

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

  • Windows 11: How to Fix Windows 11 Won’t Connect to a Network
  • What to Do When Firefox Won’t Load a Page
  • Chrome: How to Refresh Various Tabs Simultaneously
  • The Latest Foldable Phones – A Look At The Huawei Mate X2
  • Everything Announced at Google I/O 2022 That You Should Care About
  • How to Build the Best High-Spec PC for Your Budget
  • Google Shows Off Pixel 7 and Pixel Watch Ahead of Fall Launch
  • Windows 11: How to View Saved Passwords

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 2022 Technipages · All Rights Reserved · Privacy