How To Clear DNS Cache In Mac OS and Windows

Ever wanted to clear DNS cache on your mac os? I use it all the time … and over and over again I am searching for the same command line. To keep the records also for me here it is:

$ dscacheutil -flushcache

Here is the line for CMD on your Windows machine:

C:\>ipconfig /flushdns