码迷,mamicode.com
首页 > 其他好文 > 详细

ubuntu server unable to resolve host

时间:2014-07-29 21:31:42      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:os   res   ubuntu   server   ip   on   ca   动态   

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

ubuntu server unable to resolve host,布布扣,bubuko.com

ubuntu server unable to resolve host

标签:os   res   ubuntu   server   ip   on   ca   动态   

原文地址:http://www.cnblogs.com/barfoo/p/3876259.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!