As far as I can tell, the software is behaving exactly as described in the documentation.
The main issue is that the system applies a defacto default hostname but will alter it later
The issue will only occur in a situation where hostname is missing, i.e. you didn’t set one and it therefore defaults to “localhost”. This means that the issue can be avoided by setting a hostname, which is almost always done, even on desktop installations.
The documentation is impenetrable on initial reads to someone who isn’t a network engineer
In layman’s terms it’s saying that “if a DHCP or DNS server tells us that you have a specific hostname, we will honor that and change the hostname”. Which makes a lot of sense, and is probably what you want as the default behavior in most environments.
Note, again, that this only happens if you have not set a hostname yourself.
Also note that what’s commonly called Enterprise Linux (i.e. Red Hat, CentOS and now Rocky Linux) is mainly just that, an enterprise distribution of Linux for production systems. This means that stability and reliability is prioritized over new features, which is often a trade-off you want in production environments, not on a desktop that may need to support all kinds of peripherals or newer versions of software.
You can absolutely use Rocky as a regular desktop OS but it’s not primarily what it’s designed for, so if you are looking for something to replace Windows (which it sounds like) and you are not comfortable with administrating a Linux system I suggest you try a distribution that is more primarily focused on desktop users, for example Ubuntu or one of its derivatives.
In summary, the situation is as follows:
- Your system lacks a hostname, it was not set
- A DHCP or DNS server informs the operating system that you do have a hostname
- The operating system accepts this and changes the hostname from “unset” to whatever the server informed it of.
If you ruminate over this for a minute, I think you can see that it makes a lot of sense in the 99,9% of cases that are not exactly like yours, i.e. when Rocky is being used as a server. If it does not make sense to you, perhaps consider that you are, as you say, “not a network engineer”, and that maybe it shouldn’t have to to accept that it’s probably the default for a reason.