Forrest logo
back to the ipconfig tool

ipconfig:tldr:f4920

ipconfig: Remove all data from the DNS cache.
$ ipconfig /flushdns
try on your machine

The command "ipconfig /flushdns" is used in Windows operating systems to clear or flush the DNS resolver cache. DNS (Domain Name System) is responsible for translating domain names (such as www.example.com) into IP addresses that computers can understand.

When you access a website, your computer stores the IP address of that website in its DNS resolver cache. This cache helps to speed up subsequent requests to the same website by avoiding the need to perform a DNS lookup every time. However, sometimes the cache may contain outdated or incorrect entries, which can cause issues such as not being able to access a website even if it is up and running.

The "ipconfig /flushdns" command allows you to clear the DNS resolver cache, forcing your computer to discard all the stored DNS entries and start fresh. By doing so, your computer will perform DNS lookups again to resolve domain names into IP addresses, ensuring that it has the most up-to-date information.

To execute the command:

  1. Open the Command Prompt by typing "cmd" in the Windows search bar and clicking on the "Command Prompt" application.
  2. In the Command Prompt window, type "ipconfig /flushdns" (without the quotation marks) and press Enter.
  3. You should see a message saying "Successfully flushed the DNS Resolver Cache."

After executing this command, your computer's DNS cache will be emptied, and it will start building a new cache as you visit websites and perform DNS lookups.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ipconfig tool