如何在 Ubuntu 18.04 中修改 DNS 6月 8, 2019 Ubuntu 1. 如何在 Ubuntu 18.04 中修改 DNS 如何在 Ubuntu 18.04 中修改 DNS 先安装 resolvconf 1sudo apt install resolvconf 然后编辑配置文件 编辑/etc/resolvconf/resolv.conf.d/head修改nameserver配置项,内容类似: 12nameserver 8.8.4.4nameserver 8.8.8.8 重启 reslovconf 1sudo service resolvconf restart Ubuntu linux