Change your server’s host name with macOS Server
Use the Server app to find and change your server’s host name. If you change the host name, you may also need to update the DNS server for your network, and users’ computers may need to be reconfigured.
The host name is the full, unique name that identifies the server on your intranet and (optionally) on the internet—for example, server.example.com or server.example.private.
In the sidebar of the Server app , select the server, then click Overview to find your server’s host name.
To change the host name, click Edit Host Name next to Host Name, then proceed through the Change Host Name assistant.
For information about settings in a Change Host Name assistant pane, click the Help button in the pane.
After changing your server’s host name, the DNS server that your server depends on must be updated. The new host name points to your server’s IP address, and a reverse lookup of the IP address must point to the new host name. Until the DNS server is updated, some of your server’s services might not function. Ask the provider to update your server’s DNS records.
Users who have installed profiles from your server can update their Mac computers to use the server’s new host name by getting and installing new profiles. macOS Server automatically creates a new profile each time a user downloads one, and uses the server’s current host name in the new profiles.
Changing your server’s host name may disrupt the connections of users’ computers that have macOS installed. If this happens, users need to remove your server from their list of network account servers and then add it again. For information, search Mac Help for “Join your Mac to a network account server.”