Change host name in Fedora Linux

To change the host name on Fedora Linux, do the following:

  1. Open a terminal window
  2. Login as root
  3. Add the host name to /etc/hosts
  4. Add the host name to /etc/syconfig/network
  5. Reboot your computer

Add the host name to /etc/hosts

# vi /etc/hosts <enter>
Add below line to the end of the file
192.168.1.101 american.domain.com american
:wq <enter>

Add the host name to /etc/sysconfig/network

# vi /etc/sysconfig/network <enter>
HOSTNAME=american.domain.com
:wq <enter>