Fedora 28
Sponsored Link

Set Hostname2018/05/07

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 ~]#
# change hostname

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

[root@localhost ~]#
# 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: 7d3f1bb8f4134bae89a12d252073819f
           Boot ID: cfc07f8453d249ef86b4d202b4697bfd
    Virtualization: kvm
  Operating System: Fedora 28 (Server Edition)
       CPE OS Name: cpe:/o:fedoraproject:fedora:28
            Kernel: Linux 4.16.6-302.fc28.x86_64
      Architecture: x86-64
Matched Content