Flushing DNS Cache

Jul 03, 2014, by admin

When you visit a website for the first time, your PC stores the website’s DNS information in its local cache. While this is good for DNS lookup spped, it can cause problems if DNS information has recently changed. In this case you need to “flush” your local cache and in this way force your PC to query for new DNS information.

Below are simple instructions for MS Windows, Mac and Linux users.

Microsoft Windows

Start > Run > type cmd

At the command prompt type the following command and hit Enter

ipconfig /flushdns

Linux

Restart the nscd daemon – type

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

in your terminal when logged in as root.

Mac OSX (10.4 and older)

Type

lookupd -flushcache

in your terminal to empty the DNS resolver cache.

Mac OSX (10.5 and newer)

Type

dscacheutil -flushcache

in your terminal to empty the DNS resolver cache.