Chaning Host Name In Osx

OS X server change hostname method:

sudo scutil --set HostName servername.example.com