How to Flush DNS on macOS 10.7 or 10.8
Flushing your dns is a very useful troubleshooting step and is necessary for some network changes to take effect. For some reason, Apple likes to change the command to clear the dns cache with just about every OS update, so here is the old command.