Ubuntu 19.04
Sponsored Link

Set Hostname2019/04/23

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

root@ubuntu:~#
ubuntu
# change hostname

root@ubuntu:~#
root@ubuntu:~#
dlp    
# just changed

[2] Change hostname permanently.
root@ubuntu:~#
hostnamectl set-hostname dlp.srv.world
# show settings

root@ubuntu:~#
   Static hostname: dlp.srv.world
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 73383a4430c945e5ae307ab7abf6f39b
           Boot ID: 208024e19de646f1be27f69a3ba70cf4
    Virtualization: kvm
  Operating System: Ubuntu 19.04
            Kernel: Linux 5.0.0-13-generic
      Architecture: x86-64
Matched Content