Clear the local DNS cache in OSX 10.10 Yosemite, Linux and Windows

When URLs are just not resolving the way you want it, to time to clear or flush the dns nameserver local cache –flush-the-loacl-cache

How to clear the local DNS cache….

OSX 10.10

sudo discoveryutil udnsflushcaches

OSX 10.9

dscacheutil -flushcache; sudo killall -HUP mDNSResponder

OSX 10.7  – 10.8

sudo killall -HUP mDNSResponder

OSX 10.5 – 10.6

sudo dscacheutil -flushcache


ipconfig /flushdns

Linux (depending on what you’re running)

/etc/init.d/named restart
/etc/init.d/nscd restart


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.