Operating systems such as Windows au­to­mat­i­cal­ly generate temporary entries of visited websites in a so-called DNS cache. The in­for­ma­tion contained in the cache is valid for a defined period of time. A DNS flush, i.e. emptying of the cache, removes the data from the system before the time limit expires.

$1 Domain Names – Grab your favorite one
  • Simple reg­is­tra­tion
  • Premium TLDs at great prices
  • 24/7 personal con­sul­tant included
  • Free privacy pro­tec­tion for eligible domains

What is a DNS flush?

DNS flush is the process of manually deleting the temporary entries of a DNS cache. Without a direct in­ter­ven­tion in the cache, the entries exist until their defined life span (“time to live”, TTL) has expired.

Generally, the deletion process is completed using system-specific flush DNS command line tools. On Mac, for example, you use Terminal and the ap­pro­pri­ate command for the par­tic­u­lar version of the Apple system. In Windows, you flush the DNS via CMD, i.e. via the command prompt, and using the command “ipconfig /flushdns”.

What is the DNS cache?

DNS servers are used to convert domain names such as www.example.com into numerical addresses. These “name servers” are contacted by default via the browser each time the cor­re­spond­ing projects are accessed, which slightly increases their loading time and can also lead to a DNS server overload in the case of a high number of visitors. Error messages like “DNS Server Not Re­spond­ing” are a common and despised con­se­quence.

For this reason, operating systems like Windows and macOS attach their own cache for accessed and resolved addresses – the DNS caches. These save all in­for­ma­tion that’s relevant for name res­o­lu­tion such as an IP address, host names and protocol versions. Each entry remains valid for a given time. Within this time, cor­re­spond­ing queries are answered directly from the cache without requiring a detour to the DNS server.

Note

Various ap­pli­ca­tions, such as web browsers or name servers from Internet service providers, also have their own DNS cache for speeding up name res­o­lu­tion.

Why is a regular DNS flush useful?

There are three reasons for regularly setting the DNS register to zero with a DNS flush, re­gard­less of the actual validity period of the in­di­vid­ual records:

  1. Hide search behavior: Recorded addresses including ad­di­tion­al in­for­ma­tion such as validity period provide an ap­prox­i­mate overview of your page history. The more extensive the col­lec­tion of cached addresses, the more you reveal about yourself.
  2. Security against ma­nip­u­la­tion: If cy­ber­crim­i­nals gain access to the DNS cache, they could ma­nip­u­late entries and redirect you to fake websites. So-called DNS spoofin (or DNS cache poisoning) is intended to tap sensitive login data, for example, user details for online banking.
  3. Solve technical problems: A DNS flush can resolve technical problems when accessing web ap­pli­ca­tions, e.g., if an incorrect version of the called website is displayed due to outdated entries. Following a flush, the request is answered again by the re­spon­si­ble DNS server, and the con­nec­tion setup to the web project works as planned again.
Tip

You can display the DNS cache currently stored on your system at any time. In Windows, for example, simply open the command prompt just as you would for a flush DNS command and enter the command “ipconfig /dis­playdns”.

Clear the DNS cache: how-to

There’s no rule about when the perfect moment for a DNS flush is – unless there’s an urgent problem that can be solved by emptying the cache. Once you decide to clear the DNS cache, the process is quick and straight­for­ward. Windows users, for example, can proceed as follows:

Step 1: Call command line

Use the key com­bi­na­tion [Windows] + [R] to call the “Run” dialog. Then execute the command “cmd” to start the command prompt.

Step 2: DNS flush with “ipconfig /flushdns

To flush the DNS via CMD, use the command ipconfig. To do this, enter the following command and confirm it with enter:

ipconfig /flushdns

After suc­cess­ful execution, you will receive a message that the DNS res­o­lu­tion cache has been cleared.

Note

You don’t need to worry about a DNS flush having any negative effect on your web ex­pe­ri­ence: after resetting the cache, only the first access of a web project should take a bit longer than usual if it was pre­vi­ous­ly loaded from saved resource records.

Go to Main Menu