How to change computer name so terminal displays it in OS X? I have a Mac Server 3.1.2, w/ system 10.9.4 that is not being used as DNS Server. Windows Server 2012 is DNS &amp; DHCP server. On the Mac, Terminal cannot ping hostname of mac, however, it does identify itself with it's hostname so I'm concluding this mismatch is the cause of my issues.

Anyone have a suggestion?
sudo scutil --set HostName your-hostname