We had the same problem in our company. None of the provided "solutions" did work though. We still couldn't ping for example foo.bar.company.local.
What worked in the end was the following: Don't fool around with anything, do not restart discoveryd and do not modify its plist file. Instead just add "company.local" to your search domains (System Preferences / Network / Advanced / DNS). The article at http://support.apple.com/kb/HT3473 lets you believe that things should work out of the box since 10.6 if the hostname to ping has more than 2 "labels" (parts separated by dots). This worked in 10.9 but fails in 10.10. Adding "company.local" to the search domains did the trick for us. Btw: Just adding "local" wasn't enough!
We had the same problem in our company. None of the provided "solutions" did work though. We still couldn't ping for example foo.bar.company.local.
What worked in the end was the following: Don't fool around with anything, do not restart discoveryd and do not modify its plist file. Instead just add "company.local" to your search domains (System Preferences / Network / Advanced / DNS). The article at http://support.apple.com/kb/HT3473 lets you believe that things should work out of the box since 10.6 if the hostname to ping has more than 2 "labels" (parts separated by dots). This worked in 10.9 but fails in 10.10. Adding "company.local" to the search domains did the trick for us. Btw: Just adding "local" wasn't enough!
Regards,
Oliver