Set Hostname2022/01/18 |
|
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: 0ee8aaabffd64d7c83abb8937d15fecc
Boot ID: 301e1f482f1c4c9888374aa471ba0fad
Virtualization: kvm
Operating System: CentOS Stream 9
CPE OS Name: cpe:/o:centos:centos:9
Kernel: Linux 5.14.0-41.el9.x86_64
Architecture: x86-64
Hardware Vendor: Red Hat
Hardware Model: KVM
|
| Sponsored Link |
|
|