Set Hostname2024/05/08 |
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: 7047321890b246dda057d4cc196d631b Boot ID: 567f99926ffc4d3bbced2f2f3ac2f71e Virtualization: kvm Operating System: Ubuntu 24.04 LTS Kernel: Linux 6.8.0-31-generic Architecture: x86-64 Hardware Vendor: Red Hat Hardware Model: KVM Firmware Version: 1.16.1-1.el9 Firmware Date: Tue 2014-04-01 Firmware Age: 10y 1month 1w |
Sponsored Link |
|