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