cat /etc/resolv.conf (查看resolv.conf中的内容: nameserver 是动态添加的……)
#通过添加/etc/resolvconf/resolv.conf.d/base, 间接向/etc/resolv.conf添加nameserver
sudo vi /etc/resolvconf/resolv.conf.d/base (添加下面两行)
nameserver 8.8.8.8
nameserver 8.8.4.4
sudo resolvconf -u
#/etc/resolv.conf内容已改变
cat /etc/resolv.conf
自由之思想,独立之意志