I just gave up on Linux distributions and switched to FreeBSD. Every year there are more steps backward in every Linux disto than good changes.
That is a feature not a bug.
It was bizarre to me that a few years ago even changing your host name at the command line was different between the various Linux distros.
That was one of the things that the systemd people set out to remedy, in fact. Now, you run a Desktop Bus client that talks to a system-wide Desktop Bus server using a Desktop Bus protocol.
* https://freedesktop.org/software/systemd/man/hostnamectl.htm...
* https://freedesktop.org/software/systemd/man/systemd-hostnam...