ubuntu的dns服务器设置resolv.conf
一起一直修改/etc/resolv.conf中加入
nameserver 8.8.8.8
现在更新却不行了,自定义的/etc/resolv.conf被系统覆盖了,出现了
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
搜索了一下解决办法,在/etc/resolvconf/resolv.conf.d/base里添加
$sudo vi /etc/resolvconf/resolv.conf.d/base nameserver 8.8.8.8
之后,每次重启之后/etc/resolv.conf中就回自动生成自定义的dns服务器信息了
Leave a Reply
标签云
.htaccess 301 2010 Android apache cache cacti CSS date ddos discuz django fastcgi freebsd git google http iftop linux macos mysql nginx njava php pr python sed seo snmp ssh ubuntu ubuntu10.04 wordpress xdebug 优化 密码 文件 时区 用户 登录 监控 缓存 网站 脚本 颜色
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
近期文章
近期评论
文章归档
链接表
QR Code
