sudo systemctl stop systemd-resolved
sudo systemctl disable systemd-resolved
sudo apt install unbound
sudo rm -rf /etc/resolv.conf
sudo vi /etc/NetworkManager/NetworkManager.conf
在 [main]
下面添加
dns=unbound
将 dns 服务替换为 unbound
reboot
重启电脑即可,开机查看 resolve.conf 发现 nameserver 自动配置
正文完
发表至: *NIX相关
2021-03-07