After installation, a Mageia machine is always named 'localhost.localdomain'
It is possible to edit /etc/hostname and /etc/hosts, but it will be better if installer requires the hostname from the user during installation (as Debian does)
Kernel updates should not clear anymore this hostname value as it is now.
Ant these names should be recognize by the local router. I do not know why but my router knows my RasPi's, the CPL plugin, but not the Mageia machines...
I have no opinion about localdomain.
Advices during installation could be very simple : the name you want give to your machine, the name you want to give to your local network.
I agree, that would be a nice feature to have. So far the workflow I've used to set my hostname is when (re)configuring the Internet connection after install in the MCC; it would be much better to be able to set it up during install independently of the network.
This should be optional, since advanced setups use DHCP to supply the hostname based on MAC address.
This can easily be set at the Configuration stage of the installation by manually
configuring the Network.
It can also be set when you add online media during the Mga X installation.
(I do it on my installs)
[charles@SuperSize ~]$ hostname
(In reply to magnux77 from comment #0)
> After installation, a Mageia machine is always named 'localhost.localdomain'
Hmm, I always set it during install of classic DVD via the network setup screen.
> It is possible to edit /etc/hostname and /etc/hosts,
Or better yet, use the "hostname new_FQDN_here" command to set /etc/hostname
I assume you also change other files like
/etc/sysconfig/network and DOMAIN= in any network configuration files.
> but it will be better
> if installer requires the hostname from the user during installation (as
> Debian does)
> Kernel updates should not clear anymore this hostname value as it is now.
I have yet to see that problem. It has never changed on any of my setups,
running 4 nodes and any number of VirtualBox guests.
Then again, I always select Manual ip setup in network setup screen.
> Ant these names should be recognize by the local router.
Nope, we do not need that "requirement". I have no desire to have a FQDN like cpe-74-085-167-193.tx.res.rr.com
I prefer values I set during install.
$ grep -i host /etc/sysconfig/network
$ cat /etc/hostname
$ grep $(hostname) /etc/hosts
192.168.11.132 wb.home.test wb
$ grep -i domain /etc/sysconfig/network-scripts/ifcfg-en*
> I do not know why
> but my router knows my RasPi's, the CPL plugin, but not the Mageia
During network setup there is a selection which determines if a DHCP user wants name from DHCP server or not.
> I have no opinion about localdomain.
> Advices during installation could be very simple :
But should suggest not dreaming up just any domain name.
> the name you want give to
> your machine, the name you want to give to your local network.
I suggest default TLD2 name would be .test or .invalid if name not provided by DHCP server.
I don't know nothing about network admin. I don't even completely understand your solutions. I don't know what should be done. I just say others distros ask for the name of the machine during install and Mageia does not.
I believe a good idea could be to offer to run manahost from the mageia welcome applet after installation, so that users get a valid hostname. Even when it is possible to set a hostname during installation, most users end up with no hostname and after installation they usually ask how to properly set one.
Also see https://bugs.mageia.org/show_bug.cgi?id=12580