Set Hostname2020/05/01 |
|
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: 2e76f065c00f4c0bb2cc851bf5faf697
Boot ID: 8379ce68e17f407d843a2d232d34b2c4
Virtualization: kvm
Operating System: Fedora 32 (Server Edition)
CPE OS Name: cpe:/o:fedoraproject:fedora:32
Kernel: Linux 5.6.6-300.fc32.x86_64
Architecture: x86-64
|
|
|