Debian 13 trixie
Sponsored Link

Set Hostname2025/08/12

 

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    
# 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: d5f37d1d4f2b4eabb671e1b36d45aeda
         Boot ID: 6e2c442f25034e73b2c46e2ba38176a5
    Product UUID: 66486b81-7a0a-4f8c-8ff7-fa11c1532487
  Virtualization: kvm
Operating System: Debian GNU/Linux 13 (trixie)
          Kernel: Linux 6.12.38+deb13-amd64
    Architecture: x86-64
 Hardware Vendor: Red Hat
  Hardware Model: KVM
Firmware Version: 1.16.3-4.el9
   Firmware Date: Tue 2014-04-01
    Firmware Age: 11y 4month 1w 4d
Matched Content