How to flush DNS cache in Yosemite?

phillies262834

macrumors member
Original poster
Jun 15, 2012
99
0
Hello all! I was wondering if anyone has the Terminal command to flush the DNS cache. I ask this because imgur pictures are not loading at all, and this was one of the suggestions that I found. However, the commands provided by Apple here http://support.apple.com/kb/HT5343 do not work in Yosemite.

One last thing, please do not pull out the "You shouldn't be running OS X beta on your main machine" card. I know the risks, and am using it legally as an iOS dev.

Thanks!
 
Last edited:

snarfquest

macrumors regular
Jun 7, 2013
210
4
sudo discoveryutil mdnsflushcache is not working for me any more in DP7.

However

sudo discoveryutil udnsflushcaches

has the desired result.
 

umangd

macrumors newbie
Sep 17, 2014
5
0
I tried clearing dns cache by sudo discoveryutil udnsflushcaches, but it hangs on my system! Also, both mdnsresponder plist and /usr/sbin/mdnsresponder are missing in PB3! I am unable to get ping and curl working on PB3. nslookup and dig work fine though. Any help?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.