Set Hostname2016/11/23 |
This is the example for setting Hostname of your system.
|
|
[1] | Change hostname. (but if rebooting, it will be back). |
# change hostname [root@localhost ~]# hostname dlp.srv.world [root@localhost ~]# dlp.srv.world # just changed |
[2] | Change hostname permanently. |
[root@localhost ~]#
hostnamectl set-hostname dlp.srv.world # show status [root@localhost ~]# Static hostname: dlp.srv.world Icon name: computer-vm Chassis: vm Machine ID: d5ecdc1054204a408f3c40d15c0011dd Boot ID: ef8cb770f05c4a98b6bed5c451304302 Virtualization: kvm Operating System: Fedora 25 (Server Edition) CPE OS Name: cpe:/o:fedoraproject:fedora:25 Kernel: Linux 4.8.8-300.fc25.x86_64 Architecture: x86-64 |