Set Hostname2025/06/19 |
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: 11b7ae1538764e02baf69001e45bbd9b Boot ID: 01ef904481374455af77262a92a2e0ff Product UUID: 953b0850-c3bf-4569-bae3-3c16d8e5fcb7 Virtualization: kvm Operating System: Rocky Linux 10.0 (Red Quartz) CPE OS Name: cpe:/o:rocky:rocky:10::baseos OS Support End: Thu 2035-05-31 OS Support Remaining: 9y 11month 1w 3d Kernel: Linux 6.12.0-55.16.1.el10_0.x86_64 Architecture: x86-64 Hardware Vendor: Red Hat Hardware Model: KVM Firmware Version: 1.16.3-2.el9_5.1 Firmware Date: Tue 2014-04-01 Firmware Age: 11y 2month 2w 4d |
Sponsored Link |
|