Ubuntu 21.04
Sponsored Link

Set Hostname
2021/04/29
 
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: 57d237ac2aed43cdbd503b10a02aa6e0
           Boot ID: 853ba06f39764fc3997d397f35e250b7
    Virtualization: kvm
  Operating System: Ubuntu 21.04
            Kernel: Linux 5.11.0-16-generic
      Architecture: x86-64
Matched Content