Set Hostname2024/11/04 |
|
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: f0305ac1d5f447a986a872b97da5980a
Boot ID: fbb93762c5334019b8148f94f5d01060
Product UUID: 69cedc19-5f34-45fc-b543-e793a4bce191
Virtualization: kvm
Operating System: Fedora Linux 41 (Server Edition)
CPE OS Name: cpe:/o:fedoraproject:fedora:41
OS Support End: Tue 2025-05-13
OS Support Remaining: 6month 1w
Kernel: Linux 6.11.5-300.fc41.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 7month 4d
|
|
|