Set Hostname2021/04/30 |
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: 7c16d64f1d374cf28cc758918f5cebd5 Boot ID: b2385171efe742eda8f62fe6152864e3 Virtualization: kvm Operating System: Fedora 34 (Server Edition) CPE OS Name: cpe:/o:fedoraproject:fedora:34 Kernel: Linux 5.11.12-300.fc34.x86_64 Architecture: x86-64 Hardware Vendor: Red Hat Hardware Model: KVM |