Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

BUG: DNS Search Domains not working after WiFi drops/reconnects

I've found what seems to be a nasty little bug in OS 10.9.

My WiFi appears to drop more often when I'm in the office, or just stops responding and forces me to manually turn off and turn on airport. Although it reconnects afterwards, DNS search domains no longer work, specifically in the terminal when issuinng 'ssh servername' commands. 'ping servername' also no longer works. Only typing out the full dns name of a server works. Rebooting fixes the issue, until the wifi drops again, and then it's the same thing all over again.

I've tried a PRAM reset, but no difference. I will probably revert back to Mountain Lion in the meantime until this bug is fixed.

MacBook Pro (15-inch Early 2011), OS X Mavericks (10.9)

Posted on Oct 23, 2013 12:44 PM

Reply
Question marked as Best reply

Posted on Nov 13, 2013 9:01 AM

Well I found a manual fix for this. Basically, you need to restart the mDNSResponder plist and it will work again (without having to restart the machine).


In a terminal, run these two commands:


sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist

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



I wrote a simple shell script to simplify this (google shell script basics if you've never made one before):


#!/bin/sh


echo ===============================

echo Resetting DNS search domains...

echo ===============================



printf "%s\n" "Stopping mDNSResponder.plist..."

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist



printf "%s\n" "Starting mDNSResponder.plist..."

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



printf "%s\n" "Restarted mDNSResponder.plist..."

5 replies
Question marked as Best reply

Nov 13, 2013 9:01 AM in response to adamk7

Well I found a manual fix for this. Basically, you need to restart the mDNSResponder plist and it will work again (without having to restart the machine).


In a terminal, run these two commands:


sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist

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



I wrote a simple shell script to simplify this (google shell script basics if you've never made one before):


#!/bin/sh


echo ===============================

echo Resetting DNS search domains...

echo ===============================



printf "%s\n" "Stopping mDNSResponder.plist..."

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist



printf "%s\n" "Starting mDNSResponder.plist..."

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



printf "%s\n" "Restarted mDNSResponder.plist..."

BUG: DNS Search Domains not working after WiFi drops/reconnects

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.