コンピュータの名前(2)

ローカルネットワーク名は、コンピュータ名に「.local」を追加した名前であり、スペースはハイフン(-)で置き換えられます。たとえは、My Computer という名前は、「My-Computer.local」というローカルネットワーク名になります。お使いの Mac にローカルネットワーク上の別の Mac とまったく同じ名前が付いている場合は、ローカルネットワーク名に番号が追加されます。

ローカルネットワーク名では、大文字と小文字は区別されません。したがって、「my-computer.local」は「My-Computer.local」と同じです。

https://support.apple.com/kb/PH25384?viewlocale=ja_JP&locale=en_US

では、HostNameの中には何があるのでしょうか?

% man scutil

SCUTIL(8)                 BSD System Manager's Manual                SCUTIL(8)

NAME
     scutil -- Manage system configuration parameters

   --set pref [newval]
         Updates the specified preference with the new value.  If the new value is not specified on the com-
         mand line then it will be read from standard input.

         Supported preferences include: ComputerName LocalHostName HostName