How to Flush DNS Cache?

Most of the browsers and operating systems now a days supports DNS Caching. The DNS Caching works by storing the DNS records of recently accessed domains in the browser level or system level DNS cache. The cache is called whenever a recently accessed domain is opened in the browser, and the already resolved cached DNS are used to query domain's server. The DNS cache should be cleaned whenever a domain owner changes the DNS records at their end. To clear DNS Cache, following steps are available to be performed for various operating systems.

Flush DNS Cache in Windows 8 and Windows 8.1

To Clear the DNS cache in Windows 8 and Windows 8.1, please use the below mentioned steps:

  1. Press Windows key + X and select the Command Prompt (Admin) option from the Power User menu.
  2. Type in the command ipconfig /flushdns



Flush DNS Cache in Windows Vista or Windows 7

To flush DNS on an upgraded version of Windows is almost as easy as it is in the previous versions but due to Microsofts upgraded security system requirements, you must run the command prompt with administrator privileges.


  1. To flush DNS through the command prompt, navigate as shown (Start > All Programs > Accessories > Command Prompt)
  2. to have administrator privileges, you must do right click on the command prompt application and choose "Run as Administrator."
  3. Type in the command ipconfig /flushdns


Short-cut

Type in cmd into the Windows Vista / Windows 7 start menu search field and then right click on the cmd.exe result instead of navigating through the various sub-menus.


Windows 98/NT/2000/XP Flush DNS

Given below steps will help you to clear your windows DNS cache.


  1. To access command prompt (Start > Run > ).
  2. Type the cmd and hit Enter
  3. In the CMD window that you just opened, Type in the command ipconfig /flushdns


Mac OS X Flush DNS

Flushing the DNS in Mac OS X is an easy process, but the steps taken will depend on which version of OS X is running as your operating system.

Mountain Lion or Lion

If you are using Mac OS X 10.7 or 10.8, as your operating system, you need to do the following:

  1. Access the command terminal.
  2. Run the following command in the terminal sudo killall -HUP mDNSResponder

Snow Leopard

If you are using Mac OS X 10.6, as your operating system, you need to do the following:

  1. Open up a command terminal.
  2. Run the command in the terminal dscacheutil -flushcache

Leopard and below

If you are using Mac OS X 10.5.1 or below as your operating system, you need to do the following:

  1. Open a command terminal.
  2. Run the command in the terminal lookupd -flushcache

Linux Flush DNS

If you are running the nscd Name Service Cache Daemon then you will need to do the following.

  1. Open up a command terminal (either as root or run step 2 with sudo )
  2. Run the command in the terminal /etc/init.d/nscd restart