This snippet is more than 5 years old and may no longer be best practise, test before use.

Flush Local DNS on Mac


Flush the DNS cach for the following Mac OS'sOS X Yosemite
Use the following Terminal command to reset the DNS cache:
sudo discoveryutil mdnsflushcache

OS X Mavericks, Mountain Lion, and Lion
Use the

Code: