Set Hostname2014/12/10 |
|
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: ef81d676af1644de9a2dc1a5b977c7fc
Boot ID: 71322d9f25fd4f9b803591916fbad4fb
Virtualization: vmware
Operating System: Fedora 21 (Twenty One)
CPE OS Name: cpe:/o:fedoraproject:fedora:21
Kernel: Linux 3.17.4-301.fc21.x86_64
Architecture: x86-64
|
|
|