Set Hostname2022/11/16 |
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: d1821c5650734ea89d9c76eaa700b53d Boot ID: 533a1892478f48d28cf5cfd860df02d0 Virtualization: kvm Operating System: Fedora Linux 37 (Server Edition) CPE OS Name: cpe:/o:fedoraproject:fedora:37 Kernel: Linux 6.0.7-301.fc37.x86_64 Architecture: x86-64 Hardware Vendor: Red Hat Hardware Model: KVM Firmware Version: 1.15.0-1.el9 |