ubuntu dns 配置
转自http://blog.renhao.org/2012/05/ubuntu-12-04-add-dns-nameservers/
如果直接修改/etc/resolv.conf,重启后会被覆盖
首先我们需要创建一个文件/etc/resolvconf/resolv.conf.d/tail:
vim /etc/resolvconf/resolv.conf.d/tail
然后我们在这个文件里写入自己要添加的DNS服务器,格式与以前的/etc/resolv.conf文件一致:
nameserver 8.8.8.8 nameserver 8.8.4.4
然后输入wq保存退出。接下来我们重启下resolvconf程序,让配置生效:
/etc/init.d/resolvconf restart