I have a lot of VM running, all of them with the same network config, except for their IP that are fixed and range from 10.36.8.2 to 10.36.8.250. Most of them are accessed with their IP, but some are given a name for our ease.
As such, I have 2 VM that are named
confluence. They used to be hosted on an ubuntu 12.04, but I recently created 2 new VM, running Xubuntu 18.04 and moved them.
To work correctly,
confluence needs to reach
jira by its name, and never had a problem on my 12.04.
With 18.04, I discovered
netplan and this is my current configuration :
It works fine, the machine can ping jira. But for a reason I fail to understand, the DNS config of
confluence breaks after some hours/days, even though the machine is idle and I've disabled every update in the Software & Update window.
When it happens, pinging jira gives me
Name or service not known
All the other machines can ping jira, so I know for fact it's the
confluence vm that is at fault. To fix my problem, I just have to run the following command :
sudo netplan apply
How can I fix this so I don't have to apply my netplan manually every time? Thank you