What does ipconfig /flushdns do

Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.

Last updated: April 4, 2026

Quick Answer: The `ipconfig /flushdns` command clears the local DNS resolver cache on your computer. This cache stores recent domain name lookups, and flushing it forces your system to re-query DNS servers for these names, which can resolve issues with accessing websites or online services.

Key Facts

What is DNS?

Before diving into what `ipconfig /flushdns` does, it's helpful to understand the Domain Name System (DNS). Think of DNS as the internet's phonebook. When you type a website address (like www.google.com) into your browser, your computer needs to translate that human-readable name into a machine-readable IP address (like 172.217.160.142) that servers use to identify each other. This translation process is handled by DNS servers.

What is the DNS Resolver Cache?

To speed up this process and reduce the number of times your computer has to query external DNS servers, your operating system maintains a local cache, often called the DNS resolver cache or DNS cache. This cache stores the results of recent DNS lookups. So, the next time you visit the same website, your computer can retrieve the IP address directly from its local cache instead of going through the entire DNS query process again.

What Does `ipconfig /flushdns` Do?

The `ipconfig /flushdns` command is a utility found in Windows operating systems that specifically targets this local DNS cache. When you run this command in the Command Prompt (as an administrator), it instructs your computer to clear out all the entries currently stored in its DNS resolver cache. Effectively, it empties the 'internet phonebook' on your machine.

Why Would You Use `ipconfig /flushdns`?

There are several common scenarios where flushing the DNS cache can be beneficial:

How to Use `ipconfig /flushdns`

Using the command is straightforward:

  1. Open the Command Prompt as an administrator. You can do this by searching for 'cmd' in the Windows search bar, right-clicking on 'Command Prompt,' and selecting 'Run as administrator.'
  2. In the Command Prompt window, type the following command and press Enter: ipconfig /flushdns
  3. You should see a confirmation message stating: "Successfully flushed the DNS Resolver Cache."

Potential Side Effects and Alternatives

Flushing the DNS cache is generally a safe operation. The primary 'side effect' is that your computer will need to re-resolve domain names the next time you access them, which might lead to a very slight, temporary increase in the time it takes to load websites. However, this is usually negligible. It does not affect your ability to browse the internet.

While `ipconfig /flushdns` is specific to Windows, other operating systems have similar functionalities:

In summary, `ipconfig /flushdns` is a useful command-line tool for Windows users to resolve common network and website access issues by clearing outdated DNS information stored locally on their computer.

Sources

  1. Ipconfig | Microsoft Learnfair-use
  2. Domain Name System - WikipediaCC-BY-SA-4.0
  3. What is DNS cache flushing? | Cloudflarefair-use

Missing an answer?

Suggest a question and we'll generate an answer for it.