How do I change my Mac's domain from .local?
I own a domain and use it for all of my home devices. Let's say it's example.com.
If I have a Mac whose name is bluebird, out of the box in the System Preferences it appears as bluebird.local
I'd like it to be bluebird.example.com
If I change the name in System Preferences->Sharing, I get bluebirdexamplecom which is not the point. The hostname is fine - I want to change its domain name.
How is this done in OSX? (Yosemite)