CentOS 8
Sponsored Link

Set Hostname2019/09/26

If you would like to change Host Name of your System, set like follows.
[1] Change hostname. (but when System restarted, it will be back).
# show current hostname

[root@localhost ~]#
# change hostname

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

[root@localhost ~]#
# changed

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

[root@localhost ~]#
   Static hostname: dlp.srv.world
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 120e35b64e094c549ac32f2a64ba1263
           Boot ID: e0213194dd184dd3855f436e7df3c7a5
    Virtualization: kvm
  Operating System: CentOS Linux 8 (Core)
       CPE OS Name: cpe:/o:centos:centos:8
            Kernel: Linux 4.18.0-80.7.1.el8_0.x86_64
      Architecture: x86-64
Matched Content