I'm configuring a VPS that I recently subscribed to and I follow other devs' blogposts to help me setting my own up. I often see them changing the VPS hostname. The default VPS hostname doesn't look very pretty (e.g. vps-1343-8332.myvpsprovider.cloud), so they change it to their domain name. For instance:
hostnamectl set-hostname --static www.yourdomainname.com
However, to my understanding, as long as DNS is resolving the domain names to the correct IPs, hostname has no influence at all on the hosted domain name.
Then I wonder, for what reasons do fellow devs change their default VPS hostname?