Learn about VPS hostname requirements and whether you need a domain name.
No - the hostname is an arbitrary identifier for your VPS. It can be either a Fully Qualified Domain Name (FQDN) or just a simple name.
A hostname is simply a label that identifies your server on a network. It's what you'll see when you log into your server, and what appears in various system logs and prompts.
You can set or change your hostname at any time:
hostnamectl set-hostname your-hostname
# or for FQDN
hostnamectl set-hostname server.yourdomain.comhostnamectl set-hostname your-hostname
# Edit /etc/hosts if needed
nano /etc/hostshostname
# or for FQDN
hostname -fIf you plan to run an email server, you should use an FQDN as your hostname and ensure it matches your reverse DNS (PTR) record. This helps with email deliverability and reduces the chance of your emails being marked as spam.