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

    Joined:
    Jun 15, 2012
    #1
    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!
     
  2. nicky0 macrumors member

    Joined:
    Mar 29, 2011
    Location:
    England
  3. snarfquest macrumors regular

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

    However

    sudo discoveryutil udnsflushcaches

    has the desired result.
     
  4. umangd macrumors newbie

    Joined:
    Sep 17, 2014
    #4
    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

    Joined:
    Jan 3, 2015
  6. WaterZen macrumors newbie

    Joined:
    Mar 12, 2017
    #6

Share This Page