How To Change the System Hostname

From Userful Support
Jump to: navigation, search

Copyright © 2016 Userful Corporation. All rights reserved.
(Updated 2016.03.02)


See documentation for the latest products:


A hostname is simply the name given to a computer system (also known as a "host" or "server") that is connected to a computer network. The network can be either private (for example, a Local Area Network or LAN) or public (such as the Internet).

If your system depends on Network Zero Clients, the hostname is very important.

  • The hostname you create should contain only alpha-numeric characters and hyphens (-). Other characters -- including a period/dot (.) -- are not supported by the network station driver. For example, test-computer is a valid hostname, but is not.

If network stations are detected by the Control Center, but none will assign to the host, it may be due to unsupported characters in the hostname.

This document contains instructions on changing the hostname of CentOS system.

Changing the Hostname of Centos-based Systems

  • As root or using sudo, edit the /etc/sysconfig/network file with the following command: nano /etc/sysconfig/network
    • If nano is not installed, either use another text editor such as vi or install nano with the following command: yum install nano
  • Change the hostname to remove unsupported characters
  • Save by pressing CTRL + O
  • End by pressing CTRL + X
  • The change will take effect after a reboot.

Note: Don't give localhost and admin as the hostname.