Fix:
- Remove the existing DNS resolve config file
rm /etc/resolv.conf
- Add new DNS resolve config file
ln -s /run/systemd/resolve/resolv.conf /etc/
Issue:
After reboot the VM, VM lost DNS, even though the VM has DHCP configured, and the DNS address has been configured correctly on the DHCP server
- Can’t ping with URL.
References
https://askubuntu.com/questions/1345990/ubuntu-keeps-changing-my-dns-to-127-0-0-53