Create a gist now

Instantly share code, notes, and snippets.

Mac OS X: restart mDNSResponder
Load up Terminal (Applications > Utilities > Terminal.app) and type the following.
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
To turn it back on, just do the opposite:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
@kopepasah

This worked like a charm.

I've tried sudo killall -INFO mDNSResponder over and over to no avail.

Thanks for the code.

@martinburger

For me sudo killall -HUP mDNSResponder works (http://support.apple.com/kb/ht5343).

@pavelbinar

Thanks for sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment