Tutorial: Disable Automatic Hostname in CentOS

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

Leave a Comment

Experience the power of lightning-fast web hosting in Mauritius.

Secure, reliable and always online. Your partner for effortless web hosting.


Icy Evolution

Les Fascines, Impasse de la Distillerie, Vivea Business Park - Mauritius

Tel: +230 57 95 31 81