To change the host name on Fedora Linux, do the following:
- Open a terminal window
- Login as root
- Add the host name to /etc/hosts
- Add the host name to /etc/syconfig/network
- 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>