Using Ubuntu 18.04 - My DNS suddenly stopped working. Just had installed Docker and minikube etc - not sure if this caused it - no idea.
I can ping an IP (like Google) but cannot ping google.com.
$ ping google.com ping: google.com: Temporary failure in name resolution
$ nslookup google.com ;; connection timed out; no servers could be reached
Tried a couple of things
$ sudo rm /etc/resolv.conf
$ sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
$ sudo systemctl restart resolvconf
Failed to restart resolvconf.service: Unit resolvconf.service not found.
$ sudo systemctl stop networking`
Failed to stop networking.service: Unit networking.service not loaded
Tried (re)install resolve.conf - did not work
sudo apt install resolvconf
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
sudo apt install resolvconf --fix-missing
E: Internal Error, ordering was unable to handle the media swap
Thanks
systemctl restart systemd-resolved.service
resolvectl status
gives infosystemctl restart systemd-resolved.service
- no output.resolvectl status
resolvectl: command not found. My apt is not working so cant install anything. But problem remains