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

  

  

  

Blue Captcha Image
Refresh

*

April 2019
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
2930