How-To: Flush DNS

How-To: Flush DNS

A reminder to myself. This is something I’ve been asked about a million times. In Windows, it’s very easy. But i always forget or mistype the command in Mac.

Windows

C:\>ipconfig /flushdns

Windows IP Configuration
Successfully flushed the DNS Resolver Cache.

Mac OS X

$ dscacheutil -flushcache (in Leopard)
Reminder to self: ds not dns. Ok? :)

$ lookupd -flushcache (lower versions)

Linux

/etc/init.d/nscd restart
i don't use this, so it doesn't really bother me.
*NSCD is Name Service Cache Daemon
Comments are closed.