Help Center/
Elastic Cloud Server/
User Guide (Kuala Lumpur Region)/
FAQs/
ECS Management/
Hostnames/
Why Is the Hostname of My ECS Restored to the Original Name After the ECS Is Restarted?
Updated on 2024-04-19 GMT+08:00
Why Is the Hostname of My ECS Restored to the Original Name After the ECS Is Restarted?
The following uses an ECS running CentOS 7 as an example:
- Log in to the Linux ECS and view the Cloud-Init configuration file.
- In the /etc/cloud/cloud.cfg file, comment out or delete update_hostname.
- update_hostname indicates that the hostname is changed in Cloud-Init each time the ECS is restarted.
- By default, ECSs created from a public image have Cloud-Init installed. You do not need to install or configure Cloud-Init on such ECSs. For details about how to modify a private image, see "Installing Cloud-Init" in Image Management Service User Guide.
Parent topic: Hostnames
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot