Fedora 23
Sponsored Link

Set Hostname2015/11/05

 
This is the example for setting Hostname of your system.
[1] Change hostname. (but if rebooting, it will be back).
# show current hostname

[root@localhost ~]#
localhost.localdomain
# change hostname

[root@localhost ~]#
hostname dlp.srv.world

[root@localhost ~]#
dlp.srv.world    
# just changed

[2] Change hostname permanently.
[root@localhost ~]#
hostnamectl set-hostname dlp.srv.world
# show status

[root@localhost ~]#
   Static hostname: dlp.srv.world
         Icon name: computer-vm
           Chassis: vm
        Machine ID: b5d20ad0a65044d8aae885212e819867
           Boot ID: c4ffe6165dca44ef964df033ab6f173a
    Virtualization: kvm
  Operating System: Fedora 23 (Server Edition)
       CPE OS Name: cpe:/o:fedoraproject:fedora:23
            Kernel: Linux 4.2.5-300.fc23.x86_64
      Architecture: x86-64
Matched Content