Set Hostname2015/11/21 |
This is the example for setting Hostname of your system.
|
|
[1] | Change hostname. (but if rebooting, it will be back). |
# change hostname localhost:~ # hostname dlp.srv.world localhost:~ # dlp.srv.world # just changed |
[2] | Change hostname permanently. |
localhost:~ #
hostnamectl set-hostname dlp.srv.world # show status localhost:~ # Static hostname: dlp.srv.world Icon name: computer-vm Chassis: vm Machine ID: 2a5d1c0e8a0f4260a922c4e4a356a863 Boot ID: f67c3cd09d884687b92c4da52860927e Virtualization: kvm Operating System: SUSE Linux Enterprise Server 12 CPE OS Name: cpe:/o:suse:sles:12 Kernel: Linux 3.12.28-4-default Architecture: x86-64 |