Set Hostname2021/11/05 |
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: 4d832da9210f4cf8a4e4fbda78a5f42f Boot ID: 782a2058fcc74321938134befdb1709a Virtualization: kvm Operating System: Fedora Linux 35 (Server Edition) CPE OS Name: cpe:/o:fedoraproject:fedora:35 Kernel: Linux 5.14.10-300.fc35.x86_64 Architecture: x86-64 Hardware Vendor: Red Hat Hardware Model: KVM |