Set Hostname2023/04/24 |
If you would like to change Host Name of your System, set like follows.
|
|
[1] | Change hostname. (but when System restarted, it will be back) |
# change hostname [root@localhost ~]# hostname dlp.srv.world [root@localhost ~]# dlp.srv.world # changed |
[2] | Change hostname permanently. |
[root@localhost ~]#
hostnamectl set-hostname dlp.srv.world # show settings [root@localhost ~]# Static hostname: dlp.srv.world Icon name: computer-vm Chassis: vm Machine ID: 8912940f0d6f4091a3bfb5ce73ff1cf0 Boot ID: 17e3df79cef8407ea7d7bf5d23440ce2 Virtualization: kvm Operating System: Fedora Linux 38 (Server Edition) CPE OS Name: cpe:/o:fedoraproject:fedora:38 OS Support End: Tue 2024-05-14 OS Support Remaining: 1y 2w 6d Kernel: Linux 6.2.11-300.fc38.x86_64 Architecture: x86-64 Hardware Vendor: Red Hat Hardware Model: KVM Firmware Version: 1.16.0-4.el9 Firmware Date: Tue 2014-04-01 |
|