Web Hosting Knowledge Base / Website Hosting: How-To

How do I clear the DNS cache on my computer?

The easiest way to clear your DNS cache is to shut down your internet router/modem and any open browser windows for 5 minutes and restart them.

Another advanced way to flush the DNS, in accordance with your operating system, are given below:

To flush the DNS cache in Microsoft Windows (Win XP, Win ME, Win 2000):

Start -> Run -> cmd

- In command prompt, type: 

ipconfig /flushdns

To flush the DNS cache in Linux, restart the nscd daemon, in terminal, run:

/etc/rc.d/init.d/nscd restart

To flush the DNS resolver cache in Mac OSX Leopard, you can use the command dscacheutil -flushcache in Terminal:

dscacheutil -flushcache

To flush the DNS resolver cache in Mac OSX versions 10.5.1 and before, the command lookupd -flushcache will perform the same task:

lookupd -flushcache
Last update: Jul 11, 2022 15:03