How to Clear DNS Cache

Clearing the DNS Cache for Windows Operating Systems

To clear the DNS cache in Microsoft Windows, follow these steps:

 

  1. Click Start, type cmd, and then press Enter.
  2. At the command prompt screen, type the following command, and then press Enter:
    ipconfig /flushdns

Your DNS cache has been cleared.

 

Clear the DNS Cache for Mac OS X operating systems

To clear the DNS cache in Apple Mac OS X, follow these steps:

 

  1. In the References > Tools > follow the Terminal path.
  2. To clear the cache, at a command prompt, type the appropriate command for your version of Mac OS X:

 

  • For OS X Yosemite v10.10.4 or later, type the following command:

sudo killall -HUP mDNSResponder

 

  • For OS X Yosemite v10.10 v10.10.3, type the following command:

sudo discoveryutil mdnsflushcache

 

  • For OS X Mavericks, Mountain Lion, and Lion, type the following command:

sudo killall -HUP mDNSResponder

 

  • For Mac OS X Snow Leopard, type the following command:

sudo dscacheutil -flushcache

 

Your DNS cache has been cleared.

 

DNS Cache Clearing for Linux operating systems

Most Linux distributions do not use OS-level DNS caching. Instead, apps (such as web browsers) keep their own internal caches. To clear an app's DNS cache, all you usually need to do is restart the app.

 

Clear DNS Cache for Google Chrome browser

The Google Chrome web browser maintains its own internal DNS cache. To clear the DNS cache, follow these steps:

 

  1. Start Google Chrome.
  2. Type chrome://net-internals/#dns in the address bar.
  3. Click the Clear Host Cache button.
  4. Type chrome://net-internals/#sockets in the address bar again.
  5. Click Close Idle Sockets, and then click the Flush Sockets Pools button.

 

After this process, the browser cache will be cleared.

Can't find the information you are looking for?

Create a Support Ticket
Did you find it useful?
(690 times viewed / 0 people found it helpful)