Command to flush DNS for Linux, Mac and Windows

To flush the DNS in terminal, here is the way:

For Linux,

/etc/init.d/nscd restart

For Mac

sudo dscacheutil -flushcache

For Windows,

ipconfig /flushdns

Advertisements