解决Ubuntu 18.04修改/etc/resolv.conf重启后失效编辑 /etc/resolvconf/resolv.conf.d/base写入希望修改的DNS服务器:nameserver 8.8.8.8应用更改:sudo resolvconf -u