Our CentOS VPS are deployed with the hostname you specify during the server order process. If you simply use the hostname command to change your hostname, the change will be lost if you reboot your server. To disable this option, you need to edit the /etc/sysconfig/network file, there should be a line HOSTNAME=whatever, you just need to change that.
Your can also do:
scarletctl disable set-hostname