On Fri, Jun 10, 2022 at 04:01:03PM -0400, Neal Gompa wrote:
openSUSE uses a randomly generated suffix for default hostnames, which neatly solves this problem. It makes autodiscovery and other things actually work properly. As it is, having just "fedora" breaks too much stuff. If it was "fedora-XXXXX", then we could probably keep it.
How do they implement this? I wonder if it would make sense to have systemd-hostname understand some character like # (which isn't valid in hostnames) in DEFAULT_HOSTNAME to be replaced with a random number seeded from the machine-id?