Set Hostname2020/11/02 |
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: c738c1e8902f4d48883fbbcf70c48073 Boot ID: 8f8e1b6f26f24cb3a2b063358faea1c8 Virtualization: kvm Operating System: Fedora 33 (Server Edition) CPE OS Name: cpe:/o:fedoraproject:fedora:33 Kernel: Linux 5.8.16-300.fc33.x86_64 Architecture: x86-64 |