MacOS – OSX Yosemite DNS cache Issues


I'm having a really frustrating DNS cache issue on my Macbook running Yosemite.

I'm a web developer so i'm always working with new sites and setting up new servers / domains etc.. so every now and then I will try to load a domain that hasn't propagated yet and I will get the standard "ERR_NAME_NOT_RESOLVED" error.

I will then confirm the domain has propagated and try clearing my DNS cache using every single option I've found online:

  • sudo killall -INFO mDNSResponder
  • sudo discoveryutil udnsflushcaches
  • sudo discoveryutil mdnsflushcache;sudo discoveryutil udnsflushcaches;say flushed

And NONE of them work! I simply can NEVER access that domain until I restart my Mac or wait 24 hours or something stupid!

I can access the domain FINE on my phone via both WIFI (same network) AND 3G / Mobile… so the issue is 100% with my Macbook and Yosemite!

It's so frustrating!!!!

Does anyone know a fix for this?

Best Answer

Yosemite doesn't use mDNSResponder, it uses discoveryd - which has caused so many people so many issues that Apple have done an about face & are re-introducing mDNSResponder in Yosemite 10.10.4

You can sign up for the Appleseed Beta if you really want it early.