For those who are tired of changing their hostname on thier VPS after a restart or when it goes down and comes back up. This isn't a big deal for most, but I use the hostname for Virtuozzo access instead of the IP so it's more a convenience thing for me. This also stops some of those e-mail errors about
root@vps###.hostv.com and
cpanel@vps###.hostv.com does not exist.
After editing the hostname (WHM is the easiest way IMO, but there are plenty of other options).
Login to SSH as root and navigate to etc/sysconfig and type: chattr +i network.
Code:
cd ..
cd etc/sysconfig
chattr +i network