Skip to content

Instantly share code, notes, and snippets.

@naupaka
Last active August 4, 2018 10:45
Show Gist options
  • Save naupaka/c89bb291a0a2abd9f849 to your computer and use it in GitHub Desktop.
Save naupaka/c89bb291a0a2abd9f849 to your computer and use it in GitHub Desktop.
Tips for dealing with DNS issues in OS X Yosemite

If you are having issues with DNS in OS X Yosemite, you're not alone. Me too.

Here's some background.

A less intense fix for the problems (that generally works for me) comes from these two articles on SE:

DNS doesn't work properly in OS X Yosemite
Yosemite Cannot Resolve Domain Names

Solution summary:

  • Flush DNS caches
sudo discoveryutil udnsflushcaches
sudo discoveryutil mdnsflushcache
  • Unload/reload discovery daemon (discoveryd replaces mdnsresponder)
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist

If that doesn't work, then:

  • Backup and then delete the contents of /Library/Preferences/SystemConfiguration/
  • You will have to reconfigure your network interfaces in the network control panel
  • As suggested here on the Apple forums
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment