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

posted on 2014-07-29 18:57  c碰  阅读(229)  评论(0编辑  收藏  举报