This article explains, to the best of my knowledge, what to do when renaming a Fedora server. My notes relate most recently to Fedora 14 and 16.
Basically open up and edit the following files:
- /etc/sysconfig/network
- /etc/hosts
- /etc/samba/samba.conf
- /etc/sysconfig/network-scripts/ifcfg-Auto_eth*
It should be that all you change are any references to the name of the host. If you are actually cloning a machine then clearly you might need to change other things like static IPs but this article is focused on changing the name.
The first file, “network” is the most important one. In fact with Fedora 16 I would suggest only editing “network”, rebooting and then looking at the hosts file.
The “samba.conf” file may need no work depending on how you have set it up.
I don’t often have to edit the ifcfg-Auto file so quite likely it won’t exist for you and you needn’t worry.