vps交流

scaleway家 centos7 ,chattr -i /etc/resolv.conf 报错


本帖最后由 Geekman 于 2021-12-31 17:36 编辑

前面dns 解析不出,大佬说吧warp dns那一行,注释掉。

试了下,重启就好了,啥原理啊
注释之前
https://iknow-pic.cdn.bcebos.com/1b4c510fd9f9d72a09c4f18cc62a2834359bbbfb

注释掉 重启后
https://iknow-pic.cdn.bcebos.com/a044ad345982b2b7593fd85523adcbef77099bfb
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scaleway家 centos7 ,chattr -i /etc/resolv.conf 报错

当初上了warp ,但是dns 重启后总是变,所以就锁定了1.1.1.1     chattr +i /etc/resolv.conf

但是最近dns 解析出问题了,想试着修改,

chattr -i /etc/resolv.conf 报错

  1. chattr: Inappropriate ioctl for device while reading flags on /etc/resolv.conf

复制代码

scaleway家 centos7 ,chattr -i /etc/resolv.conf 报错
scaleway家 centos7 ,chattr -i /etc/resolv.conf 报错scaleway家 centos7 ,chattr -i /etc/resolv.conf 报错

重装系统
去改网络管理器的配置,不要动resolv

dns 失效 想dd都不行scaleway家 centos7 ,chattr -i /etc/resolv.conf 报错

rm 之后自己建一个新的
VNC救援
试试先执行 umount  /etc/resolv.conf
本帖最后由 zhujizixun 于 2021-12-31 17:36 编辑

您的文件系统不支持这种属性。/etc/resolv.conf可能是一个符号链接并不是实际文件。chattr -f -i /etc/resolv.conf

安装resolvconf
赞(0)
版权声明:本贴采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
帖子名称:《scaleway家 centos7 ,chattr -i /etc/resolv.conf 报错》
帖子链接:https://bbs.toot.su/60792.html

相关推荐