To address missing DNS entries in some VMs, follow the steps below to manually add nameservers and search domain to k3s:
Create a file
Data:/etc/rancher/k3s/resolv.conf
with the following data.Create another file
Data:/etc/rancher/k3s/config.yaml
with the following data.Now restart the k3s service using following command.
Delete coredns pod using the following command.
Run the following command to verify whether the DNS has been updated.