Many applications rely on a fully qualified domain name and won’t work properly or even fail to start without one. For example, even if your hostname is correctly set up, apache won’t start with the default configuration on Fedora 19 if your DNS server cannot resolve the hostname: But fortunately there’s a plugin to the GNU Name Service Switch (NSS)… Read more »
Staring with Fedora 18, the hostname is longer set it /etc/sysconfig/network but in /etc/hostname. To manipulate the hostname there’s a small tool named hostnamectl which is part of Fedora’s systemd package. The following table (taken from the Fedora 18 Release Notes) shows a few basic hostnamectl commands to set or change a host’s name: See also hostnamectl manpage.
In contrast to Ubuntu (or even Microsoft Windows) default installations of Fedora do not send the client’s hostname to the DHCP server. To change this behaviour, add a DHCP_HOSTNAME variable to your /etc/sysconfig/network-scripts/ifcfg-eth0 file (eth0 being your NIC’s interface name): Of course, this only works if you actually get your IP address via DHCP (since the DHCP server hands off… Read more »