1、安装域名解析器resolver
sudo apt install resolvconf
sudo vim /etc/resolvconf/resolv.conf.d/base
2、配置以下内容
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 127.0.0.1
3. 保存并退出
sudo resolvconf -u
1、安装域名解析器resolver
sudo apt install resolvconf
sudo vim /etc/resolvconf/resolv.conf.d/base
2、配置以下内容
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 127.0.0.1
3. 保存并退出
sudo resolvconf -u