Skip to content

Instantly share code, notes, and snippets.

@savelee
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save savelee/2be4dcadb7638b005365 to your computer and use it in GitHub Desktop.
Save savelee/2be4dcadb7638b005365 to your computer and use it in GitHub Desktop.
Unload & Reload discoveryd to Fix DNS & Wi-Fi Failures in OS X Yosemite
This trick involves refreshing the discoveryd service by unloading and reloading it with the launchctl command.
This is a bit curious but apparently it works for some users, suggesting there could be an issue with discovery or resolving DNS on some Yosemite Macs.
It’s certainly worth a try if the above tricks failed to resolve your wi-fi connectivity problems in OS X 10.10, as there are a fair amount of positive reports with this one:
Open Terminal (found in /Applications/Utilities/ or with Spotlight) and enter the following command:
`sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist`
Hit return and enter an admin password to use the sudo command
Now run the following command to reload discoveryd (this used to be called mDNSResponder)
`sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist`
Again hit Return to finish the command
You may need to relaunch apps that require network connectivity. Note that if you reboot the Mac with this one, you will have to repeat the above steps to unload and reload discoveryd into launchd.
http://osxdaily.com/2014/10/25/fix-wi-fi-problems-os-x-yosemite/
http://osxdaily.com/2014/11/20/flush-dns-cache-mac-os-x/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment