I have changed my hostname:
- Code: Select all
[admin@gigaserver ~]$ hostname
gigaserver
[admin@gigaserver ~]$ hostnamectl
Static hostname: gigaserver
Icon name: computer-desktop
Chassis: desktop 🖥️
Machine ID: f1abdd89e2f34c009607d79dc17b2ddd
Boot ID: e3b388f797694e1a887eaf7318d5bfc8
Operating System: Mageia 9
Kernel: Linux 6.6.18-desktop-1.mga9
Architecture: x86-64
Hardware Vendor: Gigabyte Technology Co., Ltd.
Hardware Model: Z690 UD DDR4
Firmware Version: F20
Firmware Date: Thu 2022-11-03
[admin@gigaserver ~]$ cat /etc/hostname
gigaserver
[admin@gigaserver ~]$ cat /etc/hosts
127.0.0.1 gigaserver localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
[admin@gigaserver ~]$
Related to the hostname, something strange happened to me:
when I installed the system, I did it with DHCP, and immediately after finishing the installation,
I changed the hostname using hostnamectl.
Somedays later (when I had already finished installing my system,
and even had installed TeamViewer and tested it), I changed the monitor
and then set a static address using MCC.
HOWEVER, after restarting the system, I realized that the hostname
had been changed to localhost, and from that moment on,
I am having this problem.