In Microsoft Windows:
Use the command ipconfig /flushdns to flush the DNS resolver cache.
- Start -> Run -> type cmd
- In command prompt, type
ipconfig /flushdns
In Mac OSX:
Use the command lookupd -flushcache to flush the DNS resolver cache.
bash-2.05a$ lookupd -flushcache
In Max OS X 10.5, please use this command on terminal to flush dns cache:
dscacheutil -flushcache
In Linux:
The nscd daemon manages the DNS cache.To flush the DNS cache, restart the nscd daemon.
To restart the nscd daemon, use the command `/etc/rc.d/init.d/nscd restart`.