Debian 9 Stretch
Sponsored Link

Set Hostname
2017/06/20
 
This is the example for setting Hostname of your system.
[1] Change hostname. (but if rebooting, it will be back).
# show current hostname

root@debian:~#
debian
# change hostname

root@debian:~#
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
Matched Content
 
Tweet