Set Hostname2026/04/27 |
|
This is the example for setting Hostname of your system. |
|
| [1] | Change hostname. (but if rebooting, it will be back). |
|
# change hostname root@ubuntu:~# hostname dlp root@ubuntu:~# dlp # just changed |
| [2] | Change hostname permanently. |
|
root@ubuntu:~#
hostnamectl set-hostname dlp.srv.world # show settings root@ubuntu:~#
Static hostname: dlp.srv.world
Icon name: computer-vm
Chassis: vm
Machine ID: df5ab49faaf14b409b2c405e838f12cb
Boot ID: 5a5cf1889ae04507a46ad233bf5aaca5
Product UUID: a918da5a-7a00-46ef-8f3f-091249a7c632
Virtualization: kvm
Operating System: Ubuntu 26.04 LTS
Kernel: Linux 7.0.0-14-generic
Architecture: x86-64
Hardware Vendor: Red Hat
Hardware Model: KVM
Hardware SKU: 9.6.0
Hardware Version: RHEL-9.6.0 PC _Q35 + ICH9, 2009_
Firmware Version: 1.16.3-4.el9
Firmware Date: Tue 2014-04-01
Firmware Age: 12y 3w 4d
|
|
|