FacebookTwitterLinkedIn

How to Flush DNS on Windows 11

How to Flush DNS on Windows 11 (and Older Windows Versions)

If you're experiencing Internet connection issues, you might want to clear your DNS cache. In this article, we'll show you how to flush your DNS cache on Windows 11, but the same steps apply to Windows 10, 8.1, and older Windows versions.

How to Flush DNS

Like web browsers, operating systems also store cache files of previous Domain Name System (DNS) lookups in the DNS cache.

The DNS cache stores the IP addresses of web servers containing web pages that you recently visited. When you visit a website for the first time, the operating system stores that website's DNS cache files. Windows will cache IP addresses and other DNS records to fulfill future requests faster.

Performing DNS caching decreases the load on the DNS server during peak traffic. As long as the DNS cache files are valid, they will answer content requests without going through the DNS server.

However, if the DNS cache becomes outdated or corrupted, it can lead to errors and security vulnerabilities. Therefore, if you're having connection issues, can't access specific websites, or getting errors such as error 404 due to a moved domain name or host, you might want to clear your DNS cache.

Other reasons to flush your DNS cache include preventing search behavior tracking, as the information stored in the DNS cache allows cybercriminals to predict your browser history. Also, clearing your DNS cache will prevent DNS spoofing and protect your personal information, such as login credentials.

Video Instructions on How to Flush DNS Cache

Table of Contents:

How to Perform a DNS Flush

1. Hold down Windows+R keys to open Run.

Type in CMD in Run and open Command Prompt as an administrator

2. In the Run dialog box, type in CMD and hold down Ctrl+Shift+Enter keys to open the elevated Command Prompt.

Type in ipconfig /flushdns in Command Prompt and hit Enter

3. In the Command Prompt window, type in ipconfig /flushdns and press the Enter key. Running this command will clear the DNS cache files and reset the DNS resolver cache.

4. Close the Command Prompt.

[Back to Top]

▼ Show Discussion

About the author:

Rimvydas Iliavicius

Rimvydas is a researcher with over four years of experience in the cybersecurity industry. He attended Kaunas University of Technology and graduated with a Master's degree in Translation and Localization of Technical texts. His interests in computers and technology led him to become a versatile author in the IT industry. At PCrisk, he's responsible for writing in-depth how-to articles for Microsoft Windows. Contact Rimvydas Iliavicius.

Our guides are free. However, if you want to support us you can send us a donation.

About PCrisk

PCrisk is a cyber security portal, informing Internet users about the latest digital threats. Our content is provided by security experts and professional malware researchers. Read more about us.

Malware activity

Global malware activity level today:

Medium threat activity

Increased attack rate of infections detected within the last 24 hours.