Set Hostname2021/08/19 |
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: 6d96b40f1a954b7cbd42a163bc9e82af Boot ID: 109e1823f1ac482ab84627bc796d3292 Virtualization: kvm Operating System: Debian GNU/Linux 11 (bullseye) Kernel: Linux 5.10.0-8-amd64 Architecture: x86-64 |
Sponsored Link |