This question already has an answer here:

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 & 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?

marked as duplicate by bmike Oct 1 '15 at 14:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

sudo scutil --set HostName your-hostname
  • thanks, however, after setting hostname using the command line above, when I try to ping it cannot resolve. – user87657 Aug 13 '14 at 15:39

Not the answer you're looking for? Browse other questions tagged .