Set Hostname2018/11/01 |
This is the example for setting Hostname of your system.
|
|
[1] | Change hostname. (but if system restarted, 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 state [root@localhost ~]# Static hostname: dlp.srv.world Icon name: computer-vm Chassis: vm Machine ID: a876222710d94ce6b27f0a5e8cc31d17 Boot ID: 5bde0dd8a9aa4489a7965a3f7a1565ac Virtualization: kvm Operating System: Fedora 29 (Server Edition) CPE OS Name: cpe:/o:fedoraproject:fedora:29 Kernel: Linux 4.18.16-300.fc29.x86_64 Architecture: x86-64 |