Set Hostname2023/11/10 |
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: cc702c1189b2478980465af429b275d5 Boot ID: 2331caa591ac48c788742e972494bbe3 Virtualization: kvm Operating System: Fedora Linux 39 (Server Edition) CPE OS Name: cpe:/o:fedoraproject:fedora:39 OS Support End: Tue 2024-05-14 OS Support Remaining: 6month 3d Kernel: Linux 6.5.9-300.fc39.x86_64 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: 9y 7month 1w 2d |