ubuntu 在/etc/network/interfaces设置了dns-nameservers x.x.x.x 无效

需要安装resolvconf包

# sudo apt install resolvconf

然后在/etc/network/interfaces 写入

dns-nameservers 114.114.114.114 8.8.8.8

注意: 多个dns以空格隔开

posted @ 2020-08-28 09:22  海里木有鱼  阅读(1708)  评论(0编辑  收藏  举报