Fedora 40
Sponsored Link

Set Hostname2024/05/07

 
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: 278ceb91d2f442f786a0384570a88ba3
             Boot ID: 00efb5f9f527455e9e623d859edc99a1
      Virtualization: kvm
    Operating System: Fedora Linux 40 (Server Edition)
         CPE OS Name: cpe:/o:fedoraproject:fedora:40
      OS Support End: Tue 2025-05-13
OS Support Remaining: 1y 5d
              Kernel: Linux 6.8.8-300.fc40.x86_64
        Architecture: x86-64
     Hardware Vendor: Red Hat
      Hardware Model: KVM
    Firmware Version: 1.16.1-1.el9
       Firmware Date: Tue 2014-04-01
        Firmware Age: 10y 1month 6d
Matched Content