我是直接关systemd-resolve(其实主要是因为要装dnsmasq这玩意会占用53) systemctl disable systemd-resolved systemctl stop systemd-resolved 再锁定resolve.conf就可以了 chattr +i /etc/resolv.conf
@LongLight #23 发布于2024/11/20 12:36:52 我是直接关systemd-resolve(其实主要是因为要装dnsmasq这玩意会占用53) systemctl disable systemd-resolved systemctl stop systemd-resolved 再锁定resolve.conf就可以了 chattr +i /etc/resolv.conf 中间漏了个删除软链接的resolv rm -rf /etc/resolv.conf
楼主你修改了 /etc/systemd/resolved.conf中的dns那/etc/resolv.conf这个文件里面的dns还要还成跟/etc/systemd/resolved.conf里面一样的dns吗?
@Itsuki #20 曲线救国
chattr +i
我是直接关systemd-resolve(其实主要是因为要装dnsmasq这玩意会占用53)
再锁定resolve.conf就可以了
中间漏了个删除软链接的resolv
我是这么解决的
感谢!
楼主你修改了
/etc/systemd/resolved.conf中的dns那/etc/resolv.conf这个文件里面的dns还要还成跟/etc/systemd/resolved.conf里面一样的dns吗?
ubuntu 好像改了都不行