Set Hostname2021/02/23 |
|
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: 54f4bd7df8464337a3009215fdef55fb
Boot ID: fada06f7a9a44d528583aa3909302f71
Virtualization: kvm
Operating System: CentOS Stream 8
CPE OS Name: cpe:/o:centos:centos:8
Kernel: Linux 4.18.0-240.el8.x86_64
Architecture: x86-64
|
| Sponsored Link |
|
|