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>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s