Set Hostname2025/10/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) |
|
# show current hostname # if command does not exit, install it with [zypper install hostname] localhost:~ # localhost.localdomain # change hostname localhost:~ # hostname dlp.srv.world localhost:~ # dlp.srv.world # changed |
| [2] | Change hostname permanently. |
|
localhost:~ #
hostnamectl set-hostname dlp.srv.world # show settings localhost:~ #
Static hostname: dlp.srv.world
Icon name: computer-vm
Chassis: vm
Machine ID: b40083ce2b1a43e69e44ec5d6f54955b
Boot ID: c6fb8be5f7904262ad7cd548e874bb29
Product UUID: feb07f99-9743-449e-9a79-8dcc573acd44
Virtualization: kvm
Operating System: openSUSE Leap 16.0
CPE OS Name: cpe:/o:opensuse:leap:16.0
Kernel: Linux 6.12.0-160000.5-default
Architecture: x86-64
Hardware Vendor: Red Hat
Hardware Model: KVM
Firmware Version: 1.16.3-4.el9
Firmware Date: Tue 2014-04-01
Firmware Age: 11y 6month 3w 1d
|
|
|