使用 Ubuntu 18.04 - 我的 DNS 突然停止工作。刚刚安装了 Docker 和 minikube 等 - 不确定这是否导致它 - 不知道。
我可以 ping 一个 IP(如 Google),但无法ping google.com。
$ ping google.com ping: google.com: 名称解析暂时失败
$ nslookup google.com ;; 连接超时; 无法访问任何服务器
尝试了几件事
$ 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
尝试(重新)安装 resolve.conf -没有用
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
谢谢