What Can I Do If resolv.conf Gets Reset?
Symptom
The resolv.conf file you have modified gets reset after you restart the ECS.
Solution
Add the i attribute to the file, which allows only user root to modify the file.
chattr +i /etc/resolv.conf
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.