How to Change the Hostname in Linux
A clear hostname helps with logs, monitoring and certificates. On modern Ubuntu/Debian (systemd) use hostnamectl.
Steps
Check the current name:
hostnamectlSet the new hostname (short name or FQDN label):
sudo hostnamectl set-hostname vps-madrid-01