ubuntu体验入门 域名不能保存问题

2014/05/1510:11:55 4

以前在centos中,域名地址都是保存在/etc/resov.conf文件中,在ubuntu中也有这个文件,但最近几次开关机发现,每次开机都会被清空,后来仔细看了下,这个文件中有这么两人行信息:

# 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中填写。

echo "nameserver 8.8.8.8" >> /etc/resolvconf/resolv.conf.d/base

echo "nameserver 8.8.4.4" >> /etc/resolvconf/resolv.conf.d/base
  • 微信扫码赞助
  • weinxin
  • 支付宝赞助
  • weinxin

发表评论

您必须才能发表评论!

目前评论:4   其中:访客  0   博主  0   引用   1

    • guozi

      Sorry,I don't know what u say

      • guozi

        Can't you know Chinese?

        • guozi

          sorry,I don't know what you say

        • 来自外部的引用: 1

          • victor