Help Center/ Elastic Cloud Server/ Troubleshooting/ Configuring the Network/ What Can I Do If resolv.conf Gets Reset?
Updated on 2023-03-30 GMT+08:00
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
Parent topic: Configuring the Network
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.