自定义DNS的问题
Tofloor
poster avatar
tracy1989wan
deepin
2016-08-25 23:20
Author
在系统中我使用root权限修改了/etc/resolv.conf中的DNS配置,保存后重启,开机后查看/etc/resolv.conf的内容,发现又变回了自动配置的DNS服务器地址了。为什么会出现这种情况呢?我使用的是有线网络。
Reply Favorite View the author
All Replies
avatar
emofode
deepin
2016-08-25 23:48
#1
chattr -i /etc/resolv.conf  这样就不会被修改了
Reply View the author
avatar
tracy1989wan
deepin
2016-08-26 00:47
#2
https://bbs.deepin.org/post/42730
chattr -i /etc/resolv.conf  这样就不会被修改了

我试过了,重启过后居然神奇的又变成自动设置了的。
Reply View the author
avatar
MattD
deepin
2016-08-26 07:23
#3
https://bbs.deepin.org/post/42730
chattr -i /etc/resolv.conf  这样就不会被修改了

chattr +i才是附加i属性啊……







    来自:Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0  (zh-CN)
    ——2016/8/25 下午11:23:29
    Reply View the author
    avatar
    emofode
    deepin
    2016-08-26 17:20
    #4
    https://bbs.deepin.org/post/42730
    chattr +i才是附加i属性啊……

    对,
    Reply View the author
    avatar
    tracy1989wan
    deepin
    2016-08-26 21:47
    #5

    3Q,已经搞定,这样确实能行!最后我还是自己设置了手动的ip配置!
    Reply View the author