Viewable by the world
Group Access to IT Frequently Asked Questions (FAQ)
Can VIEW the space: itfaq-editors ,  anonymous ,  itfaq-MFA-EDITORS ,  itfaq-itss ,  all-lbnl-users ,  mpsg-staff ,  itfaq-editors-lite ,  mpsg-mpsg-helpdesk ,  google-collab-documentation-management , 
Can EDIT the space: itfaq-editors-lite ,  itfaq-editors ,  mpsg-staff ,  google-collab-documentation-management ,  mpsg-mpsg-helpdesk , 
Can ADMINISTER the space:

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 11

Purpose of knowledge article

  • Discuss the differences between the 3 types of names that a macOS has: ComputerName, LocalHostname, and HostName
  • Provide instructions on how to view each type of name
  • Provide instruction on how to change each type of name

Resolution

ComputerName

  • To see the ComptueNameComputerName:
    • On the menu bar, click the Apple icon >>> System Preferences or System Settings >>> Sharing >>> Computer Name
    • In the Terminal application, run the command hostname
    • In the Terminal application, run the command sudo scutil --get ComputerName
  • To set change the ComputerName:
    • On the menu bar, click the Apple icon >>> System Preferences or System Settings >>> Sharing >>> Computer Name
    • In the Terminal application, run sudo scutil --set ComputerName "newname"
  • User-friendly name for Mac computers
  • Use for identifying Apple computers on the local network

LocalHostName (Local Hostname)

  • Usually is the same as ComputerNamewith .local added at the end
  • To see the LocalHostname:
    • On the menu bar, click the Apple icon >>>  System Preferences or System Settings >>> Sharing >>> Edit >>> Loacl Local Hostname
    • In the Terminal application, run the command hostname 
    • In the Terminal application, run the command sudo scutil --get LocalHostName
  • To set change the LocalHostName:
    • On the menu bar, click the Apple icon >>>  System Preferences or System Settings >>> Sharing >>> Edit >>> Loacl Local Hostname
    • In the Terminal application, run sudo scutil --set LocalHostName "newname"
  • Another name is local network name
  • Use for identifying Apple computers on the local network 
  • Use by Bonjour-compatible servicesUsually is the same as ComputerNamewith .local added at the end

HostName

  • To see the Hostname:
    • In the Terminal application, run the command sudo scutil --get HostName
  • To set change the HostName:
    • In the Terminal application, run sudo scutil --set HostName "newname"
  • The HostName is provided by the DHCP server that the Apple computer connects to
  • Typically not set by the user and best not to set it
  • Use by outside the local network (external network/Internet) to identify Apple computers

Additional Resouces