How to Flush and Clear Windows DNS Cache

How to Flush and Clear Windows DNS Cache

How to Flush and Clear Windows DNS Cache GA S REGULAR Menu Lifewire Tech for Humans Newsletter! Search Close GO Software & Apps > Windows

How to Flush and Clear Windows DNS Cache

Ways to flush DNS in Windows 10

By Jeremy Laukkonen Jeremy Laukkonen Writer Shoreline Community College Jeremy Laukkonen is automotive and tech writer for numerous major trade publications. When not researching and testing computers, game consoles or smartphones, he stays up-to-date on the myriad complex systems that power battery electric vehicles . lifewire's editorial guidelines Updated on November 5, 2021 Reviewed by Jon Fisher Reviewed by Jon Fisher Wichita Technical Institute Jonathan Fisher is a CompTIA certified technologist with more than 6 years' experience writing for publications like TechNorms and Help Desk Geek. lifewire's editorial guidelines Tweet Share Email Tweet Share Email Windows The Ultimate Laptop Buying Guide

What to Know

Clear your DNS with the ipconfig /flushdns command in the Run dialog box.The ipconfig /flushdns command also works via Command Prompt.You can also clear DNS via PowerShell with the Clear-DnsClientCache command. This article explains how to flush and clear Windows DNS cache, including methods that utilize the Run dialog box, Command Prompt, and Windows PowerShell. If you aren’t sure which one to use, start with the Run dialog box method. The instructions included in this article apply to Windows 10.

How to Flush and Clear Your Windows DNS Cache

The easiest way to clear your DNS cache is to use the Run dialog box, a Windows tool that allows you to quickly run commands, launch apps, and open files if you know what to type. Press and hold the Windows key + R to open the Run dialog box. Type ipconfig /flushdns into the text field, and click OK. Check to see if your problem has been resolved.

How to Use Command Prompt to Clear Your DNS Cache

The Run dialog box is quick and easy, but it doesn’t provide much feedback or options. If you aren’t sure whether the Run dialog box method worked or prefer some more feedback about whether the process is complete, you can use the same command in the Windows Command Prompt. Click the Start button or Taskbar search field, and type command. Click Run as Administrator. Type ipconfig /flushdns and press the enter key. Wait for the process to finish. Check to see if your problem has been resolved.

How to Use Windows PowerShell to Clear DNS in Windows 10


The last method you can use to clear and flush your DNS in Windows 10 is slightly different. It uses Windows PowerShell instead of the Command Prompt, so it uses an entirely different command. Right click the Start button, and select Windows PowerShell (Admin). If prompted for permission from User Account Control, click Yes. Type Clear-DnsClientCache and then press the enter key. Wait for the process to finish. Check to see if your problem has been resolved.

Why Flush Your DNS Cache

The purpose of DNS is to let you visit websites by typing a URL instead of an IP address. The point of a DNS cache is to speed up website access by making it so that your computer doesn’t have to wait for a DNS lookup every time you visit a website that you’ve already been to in the past. If this local record ends up getting corrupted, it’s out of date, or you connected to a DNS server that provided incorrect information, you may have trouble accessing websites. By clearing or flushing your DNS cache, you force your computer to check a DNS server when visiting sites because there is no longer a local record. While Windows 10 maintains a local DNS cache that you can flush with the methods found in this article, your router may also keep a cache. If you find that flushing your DNS in Windows 10 doesn’t fix your internet connectivity problem, then rebooting your router may help. Was this page helpful? Thanks for letting us know! Get the Latest Tech News Delivered Every Day Subscribe Tell us why! Other Not enough details Hard to understand Submit More from Lifewire How to Clear Cache in Windows 11 What Is a DNS Cache and How Does It Work? How to Fix an Authentication Error in Minecraft How to Change DNS Servers in Windows How to Flush DNS Cache on a Mac DNS Servers: What Are They and Why Are They Used? How to Open Command Prompt (Windows 11, 10, 8, 7, etc.) How to Find a Windows 11 Product Key What Is the Windows Terminal & How Does It Work? How to Install and Setup BASH on Windows 10 Switch Command Prompt and PowerShell on the Win+X Menu How to Delete Temporary Files in Windows How to Open Disk Management From Command Prompt How to Fix the 400 Bad Request Error How to Clear the Cache in IE11 How to Fix a Frozen Windows 10 Taskbar Newsletter Sign Up Newsletter Sign Up Newsletter Sign Up Newsletter Sign Up Newsletter Sign Up By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. Cookies Settings Accept All Cookies
Share:
0 comments

Comments (0)

Leave a Comment

Minimum 10 characters required

* All fields are required. Comments are moderated before appearing.

No comments yet. Be the first to comment!