http://interi.org/2013/03/setting-the-hostname-in-fedora-18/
[root@mojily]# hostnamectl status
Static hostname: mojily
Pretty hostname: n/a
Icon name: computer-desktop
Chassis: desktop
Machine ID: 9814b9b4c2xxxxxxxxxx
Boot ID: 7467b406c8d84xxxxxxxxxx
Operating System: Fedora 18 (Spherical Cow)
CPE OS Name: cpe:/o:fedoraproject:fedora:18
Kernel: Linux 3.11.10-100.fc18.x86_64
Architecture: x86_64
[root@mojily]# hostnamectl set-hostname chonnom
[root@mojily]# hostnamectl status
Static hostname: chonnom
Pretty hostname: n/a
Icon name: computer-desktop
Chassis: desktop
Machine ID: 9814b9b4c2xxxxxxxxxx
Boot ID: 7467b406c8d84xxxxxxxxxx
Operating System: Fedora 18 (Spherical Cow)
CPE OS Name: cpe:/o:fedoraproject:fedora:18
Kernel: Linux 3.11.10-100.fc18.x86_64
Architecture: x86_64
¡Ø hostnamectl [OPTIONS...] COMMAND ...
Query or change system hostname.
-h --help Show this help
--version Show package version
--transient Only set transient hostname
--static Only set static hostname
--pretty Only set pretty hostname
--no-ask-password Do not prompt for password
-H --host=[USER@]HOST Operate on remote host
Commands:
status Show current hostname settings
set-hostname NAME Set system hostname
set-icon-name NAME Set icon name for host
set-chassis NAME Set chassis type for host