Articles on: Network

How to Flush DNS Cache From Your Computer?

How to Flush DNS Cache From Your Computer?
This article is the guide to clear and reset the DNS resolver cache, which stores the IP address attached to frequently used DNS names. It is also useful to speed up the DNS propagation for a newly added or modified domain, at least it will remove the local cache from your terminal/PC and allow you to receive the most recent cache.
  • Flushing DNS in Microsoft Windows


In Microsoft Windows, you can use the command ipconfig /flushdns to flush the DNS resolver cache.


  1. Start > All Programs > Accessories > Command Prompt


  1. Type command: ipconfig /flushdns and hit enter.


  1. A successful flushed process will display the following result.


Windows IP Configuration

Successfully flushed the DNS Resolver Cache.

  • Flushing DNS on Mac OS X Leopard


  1. Open up a Terminal window from under Applications/Utilities.
  2. Type command: lookupd -flushcache
  • Flushing DNS on Mac OS X


  1. Open up a Terminal window from under Applications/Utilities.
  2. Type command: dscacheutil -flushcache
  • Flushing DNS on Linux


Clearing the DNS cache is done by restarting the nscd daemon.


  1. Open up a Terminal window
  2. Type command: /etc/rc.d/init.d/nscd restart

Updated on: 21/06/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!