Set Hostname2023/04/24 |
|
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: 1e57a3007e1e4955844d5f4162a7ac9e
Boot ID: 7c94775acd534be1a3bf28327718bb6c
Virtualization: kvm
Operating System: Ubuntu 23.04
Kernel: Linux 6.2.0-20-generic
Architecture: x86-64
Hardware Vendor: Red Hat
Hardware Model: KVM
Firmware Version: 1.16.0-4.el9
|
|
|