Clearing DNS Cache
Sometimes I need to clear DNS cache to test some changes and such.
Windows
Tested on XP SP2:
ipconfig /flushdns net stop dnscache net start dnscache
Linux
If you have nscd (Name Service Caching Daemon) running, you just have to restart the service (tested on Fedora 8):
/etc/rc.d/init.d/nscd restart
For bind, you could restart it doing the following command (tested on Fedora 8):
/etc/init.d/named restart
MacOSX
Tested 10.4.11:
lookupd -flushcache

