OS X: How to reset the DNS cache Use the following Terminal commands to reset the DNS cache: OS X Yosemite sudo discoveryutil mdnsflushcache;sudo discoveryutil udnsflushcaches OS X Mountain Lion or Lion sudo killall -HUP mDNSResponder Mac OS X v10.6 sudo dscacheutil -flushcache