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.
To find your server’s host name, select the server in the Server app sidebar, then click Overview.
To change the host name, click Edit next to the 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.
If your DNS service is provided by a DNS hosting service, your ISP, or another server on your network, ask the provider to update your server’s DNS records. If your server provides its own DNS service, you can use the Server app to update the 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.”
After you change the server’s host name, an alert about it appears in the Server app’s Alerts pane. The alert contains a button you can click to update services to use the new network identity. When you click the button, the Server app runs the changeip
command-line tool. This automated resolution updates services managed by the Server app.