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.

Start > All Programs > Accessories > Command Prompt


Type command: ipconfig /flushdns and hit enter.


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

Open up a Terminal window from under Applications/Utilities.
Type command: lookupd -flushcache

Flushing DNS on Mac OS X

Open up a Terminal window from under Applications/Utilities.
Type command: dscacheutil -flushcache

Flushing DNS on Linux

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

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

Updated on: 21/06/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!