Change System Hostname
When you access the Cockpit web console the hostname assigned to the system appears in the
Configuration section of the Overview page.
Cockpit administrators can choose to change the properties assigned to the Real
hostname (Static or Transient) or the Pretty hostname
(free-form UTF8) as needed.
Note:
A transient hostname, such aslocalhost
appears by default whenever a Static or Pretty hostname isn't configured.
What Do You Need?
- The Cockpit web console must be installed and accessible.
For details, see these topics: Install and Enable Cockpit and Log in to the Cockpit Web Console.
- Administrator privileges.
Steps
Using the Cockpit web console, follow these steps to change the existing hostname assigned to the host system.
- In the Cockpit navigation pane, click Overview.
The Overview page appears.
- In the Overview page, navigate to the Configuration section and
find the Hostname field, then click Edit.
The Change host name dialog appears.
- In the Change host name dialog, change either the Pretty host name field or the Real host name field, and click Change.