Fedora 42
Sponsored Link

Set Hostname2025/04/18

 

If you would like to change Host Name of your System, set like follows.

[1] Change hostname. (but when System restarted, it will be back)
# show current hostname

[root@localhost ~]#
localhost.localdomain
# change hostname

[root@localhost ~]#
hostname dlp.srv.world

[root@localhost ~]#
dlp.srv.world    
# changed

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

[root@localhost ~]#
     Static hostname: dlp.srv.world
           Icon name: computer-vm
             Chassis: vm
          Machine ID: cfb6ccee37324bb8bf7c0654ade44bde
             Boot ID: 69f72b0f74884893bd148c599ab3c70b
        Product UUID: 215b4b7c-7f6b-4d04-8a85-64f0e4cb006a
      Virtualization: kvm
    Operating System: Fedora Linux 42 (Server Edition)
         CPE OS Name: cpe:/o:fedoraproject:fedora:42
      OS Support End: Wed 2026-05-13
OS Support Remaining: 1y 3w 3d
              Kernel: Linux 6.14.2-300.fc42.x86_64
        Architecture: x86-64
     Hardware Vendor: Red Hat
      Hardware Model: KVM
    Firmware Version: 1.16.3-2.el9_5.1
       Firmware Date: Tue 2014-04-01
        Firmware Age: 11y 2w 3d
Matched Content