How to Flush the DNS Cache in OSX

It’s simple, just run:

dscacheutil -flushcache

From the terminal