Fedora 27
Sponsored Link

Set Hostname
2017/12/13
 
This is the example for setting Hostname of your system.
[1] Change hostname. (but if system restarted, 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 state

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