The new version of Mac OSX Yosemite have problems resolving domain names ending in .local, this is due to the fact that Bonjour now takes over looking for a domain before the DNS resolver.

But this can be fixed with this small command, saves you time from making /etc/hosts entry for all your .local domains.

sudo discoveryutil mdnsactivedirectory yes