Set Hostname2024/12/20 |
|
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: 13e0d866d1054d54a96f6690117098a8
Boot ID: dbb4c7686fc64c0aa1e0fb64429f4156
Product UUID: 9ecc29c8-6934-4a69-bb6c-a83621dbfd34
Virtualization: kvm
Operating System: CentOS Stream 10 (Coughlan)
CPE OS Name: cpe:/o:centos:centos:10
Kernel: Linux 6.12.0-35.el10.x86_64
Architecture: x86-64
Hardware Vendor: Red Hat
Hardware Model: KVM
Firmware Version: 1.16.3-2.el9
Firmware Date: Tue 2014-04-01
Firmware Age: 10y 8month 2w 6d
|
| Sponsored Link |
|
|