How to clear your DNS Cache on Windows PCs
- Steven Paniccia
- May 16, 2023
- 2 min read
Troubles loading a website or pining an online service by its domain name? Chances are you probably need to clear out your DNS cache. When you're trying to load a specific website or when your networking tools like "ping" and "nslookup" are showing the wrong destination IP, there is a good chance that your local dns is having an issue. We'll show you how resolve DNS issues in this step by step tutorial.
There are a few different ways to clear out your DNS cache. In this guide we'll walk you through three different ways to do so. These steps can be used in both Windows 10 and Windows 11.
Using CMD to Clear your DNS Cache
Click on the Start icon
Type in Command Prompt - right click and select Run as Administrator
In the command prompt terminal type the following command and press enter:
ipconfig /flushdns

Using your Browser to Clear your DNS Cache
Most common browsers, such as Edge, Chrome and Firefox, give you the option to clear out your DNS Cache. To do so, follow the following steps:
Open up Edge or Chrome
Type the following command: edge://net-internals/#dns into the address bar
On the DNS Tab - press the Clear Host Cache button next to the host resolver cache
the edge:// portion of the line is interchangeable with chrome

For Firefox users the following is how you would go about clearing your DNS in the broswer
Open up Firefox
Type the following command: about:networking#dns into the address bar
On the DNS tab - press the Clear DNS Cache button

Using PowerShell to clear out your DNS Cache
To clear our your DNS records using power shell follow the following steps:
Click on the Start icon
Type in PowerShell- right click and select Run as Administrator
In the PowerShell terminal type the following command and press enter:
Clear-DnsClientCache



Comments