Hi everyone,
I was struggling with the same (or similar) issue ever since upgrading to Yosemite.
Here's my scenario:
- Upgrade (not clean install) to Yosemite
- Could ping/browse/etc by IP, not by name
- Bonjour services also affected (ie: Airport Utility)
- Booting into Safe Mode did allow the DNS stuff to work (although everything else pretty much sucked)
- Doing the launchctl unload/load DID resolve my issue, albeit temporarily.
- Killing the discoveryd process (via terminal -- kill -9 -- or via activity monitor) DID resolve my issue albeit temporarily
- I did not have the plist files mentioned earlier in this thread
- Replacing my LaunchDaemons folder caused my Mac to hang on boot (I had made a backup, and fixed by booting into single-user mode and moving the old files back into place).
I'd written a script to run the launchctl load/unload stuff every 5 minutes.. but this isn't a fix to the underlying issue. I decided to work with apple support. I had a few chat sessions with them, to no avail. I kept being referred to the "wireless and multimedia" team to resolve issues with my Time Capsule. Finally, I got someone who was willing to escalate the issue, and had me call in with a case number. I spoke to someone on the phone for about 45 minutes, and did the whole song and dance with them. After about 2 or 3 times being put on hold so that they could confer with a colleague, I was sent to an escalation point.
The person I ended up working with on the issue was adamant about getting my issue resolved. We did a screen sharing/troubleshooting session. A lot of the stuff seemed odd and pointless (ie: "You shouldn't have anything in your home directory except for 5 folders"... which is completely arbitrary...), BUT... after a 1.5 hour screen sharing session, and some instruction from the tech, my issue seems to be resolved. I've not yet had to do any of the work around/hack "fixes".
Here's what we did:
- Remove contents of /Users/<myhomedir>/Library/Caches
- In my "Macintosh HD" folder, I had a folder called "OS X Install Data". Deleted that.
- In /Library/Internet Plugins, I had a few plugins that I was asked to delete. The ones that caught her eye were named Sharepoint*
- Removed everything from /Library/LaunchAgents
- Just for giggles removed preferences for a couple of applications like Spotify and Adium.
I then rebooted, and everything was back to how I'd expect. The tech is (supposedly) going to call me back and follow up sometime today.. but at this point, I'm happy. I'm not sure which one of these changes actually solved the issue... but I'll take it.
I hope this helps someone else. I'll post follow up if anything changes!