Run this command in Terminal:
sudo scutil --set HostName Daniel-MM.moranit.local
This is what it looked like for me:
But that’s not all… all that does is change the name when you type “hostname” at a terminal window…
What if you want to change it and your using BigFix or something like that…
Go to Applications->System Preferences->Sharing
change the “Computer Name” field to the desired value
also click “Edit” and change that too…
Then your all done.