Created
February 16, 2012 12:00
-
-
Save mipmip/1844353 to your computer and use it in GitHub Desktop.
Mac OS X: restart mDNSResponder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Thanks for sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
➜ sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
/System/Library/LaunchDaemons/com.apple.mDNSResponder.plist: Operation not permitted while System Integrity Protection is engaged
Does not seem to be possible with macOS when SIP is enabled.
@slhck yes, same here, on macOS Mojave.
Takes two reboots, but you can turn off sip, restore dns to sanity and then turn sip back on: Instructions here: https://www.imore.com/how-turn-system-integrity-protection-macos
Stop:
sudo killall -STOP mDNSResponder
Start:
sudo killall -CONT mDNSResponder
sudo killall -HUP mDNSResponder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For me
sudo killall -HUP mDNSResponder
works (http://support.apple.com/kb/ht5343).