创建/修改下面的文件 sudo vim /etc/resolvconf/resolv.conf.d/base
添加下面内容:
nameserver 8.8.8.8 nameserver 8.8.4.4
修改好保存,然后执行:
resolvconf -u