System has configured 'manage_etc_hosts' as True


I had created an Ubuntu 14.04 x64 droplet. I have a warning message in top of my /etc/hosts file.

# Your system has configured 'manage_etc_hosts' as True.
# As a result, if you wish for changes to this file to persist
# then you will need to either
# a.) make changes to the master file in /etc/cloud/templates/hosts.tmpl
# b.) change or remove the value of 'manage_etc_hosts' in
#     /etc/cloud/cloud.cfg or cloud-config from user-data

before that in my other droplets when I want to set a sub-domain first I create the ‘a records’ in digital ocean panel then config my web server virtual hosts and then set up my domain details in /etc/hosts file. now I don’t change /etc/hosts but everything is ok and my virtual hosts work successfully. I try to find manage_etc_hosts option for changing it but I didn’t find it. let me now if it’s bad problem or no ? if yes how can I fix it ?

tnx a lot.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Those comments can be safely ignored. They are an artifact of how networking is initially set up on the first boot using Cloud-Init. After first boot, you should be able to manage /etc/hosts as you would normally expect.

I added manage_etc_hosts: false in /etc/cloud/cloud.cfg …no help.

I “solved” (note quotes) this also as @Yeaoh did via /etc/cloud/templates/hosts.debian.tmpl …that’s not how it’s supposed to be “solved”. …and that’s not what the error message in the same file itself says = =.

Please bump this issue. much love

I was able to fix mine by editing /etc/cloud/templates/hosts.debian.tmpl with the host info.