Set Hostname2023/06/15 |
This is the example for setting Hostname of your system.
|
|
[1] | Change hostname. (but if rebooting, it will be back). |
# change hostname root@debian:~# hostname dlp root@debian:~# dlp # just changed |
[2] | Change hostname permanently. |
root@debian:~#
hostnamectl set-hostname dlp.srv.world # show settings root@debian:~# Static hostname: dlp.srv.world Icon name: computer-vm Chassis: vm Machine ID: 43401112bd4a4907802ec262beae4c1e Boot ID: b0fb209dfd704f24b8b534b2cdbf8b69 Virtualization: kvm Operating System: Debian GNU/Linux 12 (bookworm) Kernel: Linux 6.1.0-9-amd64 Architecture: x86-64 Hardware Vendor: Red Hat Hardware Model: KVM Firmware Version: 1.16.0-4.el9 |
Sponsored Link |
|