How to Flush DNS Cache From Your Computer?

Modified on Mon, 20 Feb, 2023 at 1:06 PM

 

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 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
2. Type command:
 ipconfig /flushdns and hit enter.
3. A successful flushed process will display the following result.

Windows IP Configuration
Successfully flushed the DNS Resolver Cache.


Flushing DNS in Mac OS X Leopard

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

Flushing DNS in Mac OS X

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

Flushing DNS in 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


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article