I'm trying to set a hostname with
hostnamectl set-hostname server.domain.tld in CentOS 7 but when I reboot it returns to sp-30.localdomain
Always i used that command to change hostname but now is not working, so or i'm missing somethinh or is some bug?
However, how can i change permanently my hostname?
Before rebooting I check /etc/hostname file and its correct but when I reboot it reverts
"SP-30" was the name I gave to the instance in OVH public cloud.