Fedora 30
Sponsored Link

Set Hostname
2019/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 ~]#
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: 99cf1726edcc41bc9cb935dec77253e7
           Boot ID: 767f2c77b33b45a28638079674895701
    Virtualization: kvm
  Operating System: Fedora 30 (Server Edition)
       CPE OS Name: cpe:/o:fedoraproject:fedora:30
            Kernel: Linux 5.0.10-300.fc30.x86_64
      Architecture: x86-64
Matched Content