Fedora 31
Sponsored Link

Set Hostname2019/11/12

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

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

[root@localhost ~]#
dlp.srv.world    
# 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: bddd0d03ae944d118449a7e0d7bbca15
           Boot ID: 31794537cfd94df0ae5da30ed72fbe23
    Virtualization: kvm
  Operating System: Fedora 31 (Server Edition)
       CPE OS Name: cpe:/o:fedoraproject:fedora:31
            Kernel: Linux 5.3.7-301.fc31.x86_64
      Architecture: x86-64
Matched Content