10.10 discoveryd and DNS resolution is broken, according to Ars Technica
That same article provides a solution which is going back to 10.9's mDNSResponder. It shows how to do it manually.
This Makefile will create a binary installable PKG for you with a nice post-install script that disables discoveryd and enables mDNSResponder.
Binary package ready to install is here