Clear DNS Cache

Follow these steps to flush DNS Cache on Windows

  1. Open a DOS command window. To do this, click Start, click Run, type cmd, and then press Enter.
  2. At the command prompt, type the following flush DNS command and then press Enter:
    ipconfig /flushdns
  3. The DNS cache is now clear.

Follow these steps to flush DNS Cache on Mac

  1. Open a terminal window. To do this, click Applications, click Utilities, and then click Terminal.
  2. OS X Yosemite and later (OS X v10.10.4 or later):
    sudo killall -HUP mDNSResponder
  3. OS X v10.10 through v10.10.3
    sudo discoveryutil mdnsflushcache
  4. OS X Mavericks, Mountain Lion, and Lion
    sudo discoveryutil mdnsflushcache
  5. Mac OS X Snow Leopard
    sudo dscacheutil -flushcache
  6. The DNS cache is now clear.

Flush DNS Cache on LINUX / UNIX

  1. Many Linux distributions do not use DNS caching at the operating system level. Instead, applications (such as web browsers) maintain their own internal caches. To clear an application's DNS cache, often all you have to do is restart the application.
  2. If your Linux system does use a DNS caching service, please view the documentation for more detail


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

  1. Open 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.