Set Hostname2022/04/26 |
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: 73bbfaf5e3cd467082d8f6731752bfb2 Boot ID: 7c1e054702b74d7f977ced4b94bfabe2 Virtualization: kvm Operating System: Ubuntu 22.04 LTS Kernel: Linux 5.15.0-25-generic Architecture: x86-64 Hardware Vendor: Red Hat Hardware Model: KVM |
Sponsored Link |