Change your server’s name with macOS Server
You can see and change your server’s computer name and local hostname by using the Server app or the scutil
command-line tool.
The computer name identifies the server to users who are browsing for shared computers in the Finder.
The local hostname, also known as the local network name, is a name users can use to get all services from your server on your intranet. By default, the local hostname is the computer name followed by .local. You can change the first part of the local hostname, but it always ends with .local. The local hostname can’t include spaces; they’re replaced with hyphens (-). Capitalization doesn’t matter in a local hostname. For example, if the computer name is Server, the local hostname is initially Server.local or server.local. If the computer name is Design Team Server, the default local hostname is Design-Team-Server.local or design-team-server.local.
Bonjour is an Apple networking technology that makes it easy to set up and use devices and services on a network. Because Bonjour-compatible devices and services advertise their availability, it’s easy for users (or an app or service) to find devices and services that they want to use. For example, if you turn on the Calendar service, macOS users on your intranet see your server in the Shared section of the Finder sidebar.
In the sidebar of the Server app , select the server, then click Overview to find your server’s computer name.
To find the local hostname and optionally change the computer name or the local hostname, click Edit Host Name next to Host Name.
You can see and change the computer name and the local hostname in the dialog that appears.
The computer name can be 63 Roman characters or fewer. It can include spaces, but avoid using =, :, or @.