Changing the Machine/Host Name of a Fedora Box

You can find the hostname of you machine using the command:

hostname -f

To temporarily change the hostname issue the command (substituting the NEW_HOST_NAME bit):

hostname NEW_HOST_NAME

If you need to permanently alter the machines hostname you will need to update the following 2 files /etc/sysconfig/network and /etc/hosts.  Once you've opened the files it's fairly obvious which bits to update.

vi /etc/sysconfig/network
#HOSTNAME=NEW_HOST_NAME

vi /etc/hosts 
# ip.ad.re.ss  NEW_HOST_NAME

Then restart your machine.

More from this section

RECENT PERSONAL WORK

AllTradeArt Case Study
Kwik Travel Case Study
Allotment Case Study
Revolutionshirts Case Study

RECENT ARTICLES

Import Error: No module named django.core.management

Installing and testing the Django Framework on my new mac I came acro... read more

Quick Note on Setting Up a Mail Server

Part of the basics when setting up a mail server but I needed to put ... read more

Microformats Creator Tool

"Microformats are a way of adding simple markup to human-readable... read more

Recursive Directory Listing

Nothing too fancy but a nice way of viewing a directory tree on your ... read more

CREDITS

powered by php-wax the php framework