How to flush DNS cache in Yosemite?

Discussion in 'OS X Yosemite (10.10)' started by phillies262834, Jul 2, 2014.

  1. phillies262834, Jul 2, 2014
    Last edited: Jul 2, 2014

    phillies262834 macrumors member

    Jun 15, 2012
    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 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.

  2. nicky0 macrumors member

    Mar 29, 2011
  3. snarfquest macrumors regular

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


    sudo discoveryutil udnsflushcaches

    has the desired result.
  4. umangd macrumors newbie

    Sep 17, 2014
    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?
  5. markymark1 macrumors newbie

    Jan 3, 2015
  6. WaterZen macrumors newbie

    Mar 12, 2017

Share This Page