You must make sure a server's hostname and FQDN are set correctly before joining it to a domain. How?
BeginnerScenarioNetworking, SSH and remote access
Answer
Situation read → Static hostname plus resolvable FQDN.
What I'd do →
sudo hostnamectl set-hostname app01.corp.example.com
hostnamectl
hostname -f
getent hosts app01.corp.example.com
Add a /etc/hosts entry if DNS isn't set up yet. On cloud images, set preserve_hostname: true in cloud-init so it isn't reset.
Why → Kerberos and many domain tools fail if the FQDN doesn't resolve.
Interview tip → Cloud-init resetting the hostname on reboot is a common surprise.
More on Networking, SSH and remote access
A key belonging to a departed engineer may be in `authorized_keys` on 300 servers. How do you rotate SSH keys across the fleet?IntermediateYou need to reach a database on a private subnet from your laptop through a bastion. How?BeginnerYour security team wants SSH hardened on all servers. What changes do you make?BeginnerA new server needs a static IP, gateway and DNS on RHEL 9. How do you configure it persistently?BeginnerYou're changing the network config of a remote server over SSH and could lose access. How do you protect yourself?IntermediateA web server should accept HTTP/HTTPS from anywhere but SSH only from the office. Configure the firewall.Beginner