Set Hostname2015/05/27 |
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: 60e88907bca345f8ae635a585cf55825 Boot ID: 206b011b1cc942a19e02be72dd9733f5 Virtualization: kvm Operating System: Fedora 22 (Twenty Two) CPE OS Name: cpe:/o:fedoraproject:fedora:22 Kernel: Linux 4.0.4-301.fc22.x86_64 Architecture: x86-64 |
|