Symptoms
The hostname on an OVH server resets at reboot.
Description
The hostname reset is likely due to the cloud-init module being enabled.
Workaround
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Open the
/etc/cloud/cloud.cfg
file in your preferred text editor. - Change the
preserve_hostname
value totrue
.preserve_hostname: true
- Change the
manage_etc_hosts
value tofalse
.manage_etc_hosts: false
- Save the changes and exit the text editor.
Comments
0 comments
Article is closed for comments.