Ubuntu 20.04
Sponsored Link

Set Hostname2020/04/27

 
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: 5aca289788f745dfbe31540fd702314f
           Boot ID: 4a58f8a18c494e808d12eadb33b5cc41
    Virtualization: kvm
  Operating System: Ubuntu 20.04 LTS
            Kernel: Linux 5.4.0-26-generic
      Architecture: x86-64
Matched Content