FirstServed Tech Blog - FirstServed and the Art of Server Tuning

Clearing local DNS cache

When modifying DNS settings, a local DNS cache can be pretty annoying.
Often you’ll want to clear the local cache of your computer and get new records from your provider (which may speed up the process if the provider has already updated the DNS records).

This can be done with these commands:

Windows:

ipconfig /flushdns

Linux:

/etc/init.d/nscd restart

(or service nscd restart, or /etc/rc.d/init.d/nscd, depending on your distribution)

Mac OSX:

dscacheutil -flushcache

(or lookupd -flushcache for Tiger)

These commands should be entered in a terminal ("cmd.exe" for the Windows users).

Tags: ,

Leave a Reply

You must be logged in to post a comment.