Home Tips And Guides Flush DNS

Flush DNS

by admin

Modern browsers, OS, and DNS clients store cache of IP addresses and other DNS information automatically. When a computer visits a website for the first time, it stores the website’s DNS information in the cache, and on the next visit of the same website, it looks in the cache to see if the web site’s information is present to use. An old version of a site opens if the website’s DNS information has changed since the computer’s last visit.

Flushing the cache removes all the data stored in the cache, forcing the computer to find the new DNS information for the website. It is usually done to speed up the process and minimize requests for the same hostnames. When IP addresses are changed, or bad results are cached, its necessary to clear the DNS cache. DNS cache can be cleared via command line or from browsers also. Steps to flush DNS Cache for major operating systems and browsers are as below.

How to Flush DNS in Windows 10?

Command Prompt and Windows Powershell, which is a new addition to Windows, can be used to clear DNS cache.

Option 1 – Command Prompt

To reset the DNS resolver cache, perform the following steps:

  1. Click the Start button, then type cmd
  2. Right-click Command Prompt, then choose Run as Administrator.
  3. Type ipconfig /flushdns then press Enter. (be sure there is a space before the slash)

A command box will flash on the screen for a split second, and the DNS Resolver cache is cleared.

Besides, there are some other related commands that you might be interested in:

  • ipconfig /displaydns: It displays your current DNS cache under Windows IP configuration.
  • ipconfig /registerdns: To register your DNS cache recorded in the Hosts file.
  • ipconfig /release: To release the current IP address settings.
  • ipconfig /renew: To reset and request a new IP address.

Option 2 – Windows PowerShell

  1. Select the Start button, then type powershell
  2. Select Windows PowerShell
  3. Type the following command, then press Enter:
  4. Clear-DnsClientCache

Google Chrome Browser

This method can be used for the Chrome browser regardless of the operating system.

  1. Start Google Chrome.
  2. In the address bar, type chrome://net-internals/#dns. Google Chrome displays a list of hosts in its internal DNS cache.
  3. Click Clear host cache.
  4. In the address bar, type chrome://net-internals/#sockets.
  5. Click Close idle sockets, and then click Flush socket pools.

For Webmasters/Developers

DNS cache can be cleared on the client-side, but the same can be done on DNS Serves aswell to speed up the DNS Propagation process. It can be achieved in the following ways:

Public DNS services like Google, Cloudflare, OpenDNS, VeriSign enable users to request a DNS flush for specific domains.

Google Public DNS:

  1. Visit Google’s Public DNS Flush Cache page.
  2. You’ll see a page with content similar to this:

Cloudflare Public DNS

  1. Visit the Cloudflare purge Cache page.
  2. You’ll see a page with content similar to this:

OpenDNS PublicDNS

  1. Visit the OpenDNS Cache check page.
  2. It will display DNS results from its multiple server locations. At the bottom, press the Refresh The Cache button to clear the DNS cache.

VeriSign PublicDNS

  1. Visit the VeriSign DNS Flush Cache page.
  2. Enter the domain and validate CAPTCHA and press the REFRESH CACHE button.
  3. You’ll see a page with content similar to this:

Reduce TTL

  1. TTL can be defined in your DNS settings. DNS servers respect TTL and reducing TTL can speed up the process of DNS propagation when changing servers IP’s of a web application.

Related Posts

Leave a Comment