Set Hostname2019/07/12 |
|
If you'd like to set or change System's Hostname, configure like follows.
|
|
| [1] | Change hostname. (but if restarting computer, 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: 5faf3513ed0e4a6b8797e3d88363f513
Boot ID: 3fcf1f70501e4ca5b780d438b0c0cbf0
Virtualization: kvm
Operating System: Debian GNU/Linux 10 (buster)
Kernel: Linux 4.19.0-5-amd64
Architecture: x86-64
|
|
|