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:

1
$ dscacheutil -flushcache

Here is the line for CMD on your Windows machine:

1
C:\>ipconfig /flushdns