On Thu, 07 Mar 2024 08:08:39 -0500, Markus Robert Kessler <
[email protected]> wrote:
After making and comparing the network traces, I have also compared what steps are necessary to change the hostname, locally and registered name in DNS.
MGA demands for changing the name in
/etc/hostname
/etc/sysconfig/network
as well as in the ifup-file for every interface like LAN, WIFI etc.
This is a high contrast to Raspbian, where it is sufficient to only
change /etc/hostname and reboot. But, maybe there's a way to have a kind
of script to automatically change the hostname at every location needed,
and which is integrated in MCC? -- That would be a big step forward!
Unfortunately, I do not have any contact info, or package name to place a
bug report / suggestion against.
Can you perhaps please help here
(since you have the most experience and knowing MGA best)?
As well as the above places, the hostname can also come from a dhcp server,
for each network interface. The dhcp assigned hostname is usually called
a transient hostname, as it can change, along with the ip address after
a lease is allowed to expire.
Part of it is due to history with different software looking in different places, but mostly it's due to the way the hostname can be used.
The idea that a computer can have one, and only one hostname is false.
Traditionally, a computer doesn't even have a name.
The names are only used in networking, and only when using dns instead of a
MAC address (short for medium access control address) or ip (internet protocol) address, to communicate with other systems.
Each hostname can have multiple ip addresses, and the same ip address can
have multiple hostnames.
One or more different hostnames can also be used for virtual lan, and there
can be multiple virtual lans, each with it's own hostname(s).
There are multiple ways networking can be setup, ifup scripts, networkmanager, systemd, manually, and probably other ways I don't know about.
Then there are virtual machines running under the control of that installation, each of which can use networking in various ways.
When application designers assume there can only be one hostname for a system, (which many do), that can cause problems.
There's a trade off between making it simple, and allowing the complicated setups to still work.
Mageia doesn't force the various "hostname" settings to all be the same, as there are situations where that would cause problems.
While I understand the concepts used in the complicated networking setups and have some experience with some more complicated setups, I leave the advanced networking setups to those with much more experience in that area.
Forcing it to be consistent post installation would break the complicated networking setups that can exist.
Most Mageia users only have one network interface and only want to use one hostname, and Mageia handles that situation provided the name is assigned to the nic during installation.
Mageia tries to make it easy for new users, while trying not to get in the way of more advanced users.
Unfortunately it's a matter of education, for when things go wrong.
Regards, Dave Hodgins
--- MBSE BBS v1.0.8.6 (Linux-x86_64)
* Origin: A noiseless patient Spider (2:250/1@fidonet)