Set Hostname2017/06/20 |
This is the example for setting Hostname of your system.
|
|
[1] | Change hostname. (but if rebooting, it will be back). |
# change hostname root@debian:~# hostname dlp root@debian:~# dlp # just changed |
[2] | Change hostname permanently. |
root@debian:~#
hostnamectl set-hostname dlp.srv.world # show settings root@debian:~# Static hostname: dlp.srv.world Icon name: computer-vm Chassis: vm Machine ID: a1a6b35c929e4e04b3a5c5138f391079 Boot ID: 9ee2e5e65d0d4173ac259be5e4bdf809 Virtualization: kvm Operating System: Debian GNU/Linux 9 (stretch) Kernel: Linux 4.9.0-3-amd64 Architecture: x86-64 |
|