On 6/13/22 14:15, Neal Gompa wrote:
On Mon, Jun 13, 2022 at 2:11 PM Neal Gompa ngompa13@gmail.com wrote:
On Mon, Jun 13, 2022 at 2:10 PM Matthew Miller mattdm@fedoraproject.org wrote:
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?
YaST generates a linux-XXXX hostname when you install it. The "XXXX" string is alphanumeric.
Also, yeah, I think if systemd-hostname could do something like that, we could do that instead of forcing localhost.
I agree that having a template like linux-XXXX that could be substituted in would be useful and I think we should probably do that for all variants that will stick with the existing fallback hostname today. Maybe in a followup change proposal?
I don't think that fixes all concerns that are embedded in this proposal, though.
Dusty