Saturday, February 14, 2015

Yosemite DNS

Yosemite DNS seems to be fairly broken.

A small hint is when ping fails, even though dig succeeds and Chrome, which uses it's own DNS server rather than the system one, is fine.  It seems that apple has changed their DNS client from mDNSResponder to discoveryd and the latter is having some teething problems.

This worked for me:

Add Google's name servers to those listed in the system preferences (under System Preferences->Networking->Wifi->Advanced->DNS):

Restart discoveryd by running this in Terminal:
sudo launchctl unload -w /System/Library/LaunchDaemons/
sudo launchctl load -w /System/Library/LaunchDaemons/

There might well be a better way.  It depends on what you trust.

No comments:

Post a Comment