OSX Mavericks Logo

Fix for broken search domain resolution in OSX Lion

So it turns out all is not lost, you can still revert to the original behavior of apples resolver! They’ve added a parameter to mDNSResponder called -AlwaysAppendSearchDomains. Implying that this new behavior was very intentional. I had read that Windows apparently made a similar change in one of their past updates as well so I guess this is to help fight some phishing attacks maybe? Either way, it’s annoying!

Anyway the gist of how to fix it is this:

Open up /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist and add this following parameter to the list in the ProgramArguments block:

<string>-AlwaysAppendSearchDomains</string>

So your file should look like this:

        <key>ProgramArguments</key>
        <array>
                <string>/usr/sbin/mDNSResponder</string>
                <string>-AlwaysAppendSearchDomains</string>
        </array>

Then reload the launchd config for it, this should take care of restarting it as well:

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

One thought on “Fix for broken search domain resolution in OSX Lion”

Share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s