On 1/20/22 19:43, Thomas Cameron wrote:
On 1/20/22 19:40, Tom Horsley wrote:
I never once had that happen. And I installed hundreds of virtual machines with different releases for different distros for testing at work.
It has worked this way for YEARS. Is your environment set up with working forward and reverse DNS?
I just tested it again with F35 and it got the correct hostname from reverse DNS *unitl* the first time someone logs in. Then it sets the hostname to "fedora" based on the lines in /etc/profile:
HOSTNAME=$(/usr/bin/hostnamectl --transient 2>/dev/null) || \ HOSTNAME=$(/usr/bin/hostname 2>/dev/null) || \ HOSTNAME=$(/usr/bin/uname -n) export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
I made a quick video of the difference between F35 and RHEL 8.5.
Skip to about the 1:30 mark to see the difference between F35 and RHEL 8.5. I've seen the hostname assigned by reverse DNS with every version of RHEL since at least RHEL 4. In fact, I don't recall it working otherwise ever.
Thomas