Set Hostname2022/05/20 |
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) |
# 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: 321f1db9fb144f9d925a5bfa609bea38 Boot ID: 1bc140ebef3b431787f5401127e53b98 Virtualization: kvm Operating System: Fedora Linux 36 (Server Edition) CPE OS Name: cpe:/o:fedoraproject:fedora:36 Kernel: Linux 5.17.5-300.fc36.x86_64 Architecture: x86-64 Hardware Vendor: Red Hat Hardware Model: KVM |
|