关掉systemd-resolved的步骤

sudo systemctl disable systemd-resolved
sudo systemctl stop systemd-resolved

先停用systemd-resolved, 并取消开机自动启动

接下来修改NetworkManager配置,让它能自动获取dns

编辑文件/etc/NetworkManager/NetworkManager.conf

增加一行

dns=default

本文链接地址:https://const.net.cn/495.html

标签: none

添加新评论