Score:0

Updating Ubuntu broke permanent etc/hosts configuration

us flag

I use /etc/cloud/templates/hosts.debian.tmpl file to have permanent /etc/hosts/ rules for my Ubuntu server (ver 22).

Today I updated the server but I had troubles with Nginx Proxy setup on my server, after a couple of hours to find the problem with Nginx( I was thinking the problem was with Nginx as I added simple auth to one of the sites on the server), later I figured out my settings at /etc/hosts (and /etc/cloud/templates/hosts.debian.tmpl) are deleted.

Is there a way to not to delete/broke/reset /etc/hosts (and /etc/cloud/templates/hosts.debian.tmpl) file content on OS updates on Ubuntu?

anx avatar
fr flag
anx
Sounds like files that *cloud-init* should parse. Start diagnostics by calling `cloud-init status` and do more detailed queries about its status based on whether it is still active at all.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.