Changing Hostname of Fedora Linux

By Zhiqiang Ma On Dec 12, 2012

Different Linux distros have different method to set the hostname. On Fedora Linux, it is quite simple.

Open the /etc/sysconfig/network file

vim /etc/sysconfig/network

Find the line starting with

HOSTNAME=
Assign the hostname for this computer to this variable. For example, to set the hostname to ericpc.fclose.com, just set
HOSTNAME=ericpc.fclose.com
Save the file and it should take effect. If the machine uses the network service, restarting the network may be needed:
# service network restart

By: Zhiqiang Ma Last updated: Dec 12, 2012 Views: 402
Tags: , , , , , ,

About Zhiqiang Ma

Zhiqiang Ma is a PhD candidate at Dep. of CSE, HKUST. He is interested in system software for cloud computing, virtualization of large-scale distributed system, etc. Find Zhiqiang on Facebook, Twitter, LinkedIn and Google+.

Add your comments, share your thoughts

Be nice. Keep it clean. Stay on topic. No spam.