我正在尝试添加options rotate
到resolv.conf
Ubuntu 18.04 LTS 升级中
Ubuntu 16.04 LTS:
/etc/resolv.conf -> ../run/resolvconf/resolv.conf
只需添加到即可options rotate
处理/etc/resolvconf/resolv.conf.d/body
结果如预期。
nameserver 1.1.1.1
nameserver 1.1.2.2
options rotate
18.04 LTS直接安装
/etc/resolv.conf -> ../run/resolvconf/resolv.conf
nameserver 127.0.0.53
systemctl disable systemd-resolved
systemctl stop systemd-resolved
apt install network-manager
add to /etc/NetworkManager/NetworkManager.conf
[main]
dns=default
add `options rotate` to `/etc/resolvconf/resolv.conf.d/body`
systemctl restart network-manager
systemctl restart resolvconf
/etc/resolv.conf -> ../run/resolvconf/resolv.conf
nameserver 1.1.1.1
nameserver 1.1.2.2
options rotate
18.04 LTS 从 16.04 LTS 升级
与 18.04 LTS 的步骤相同,resolv.conf
最终得到相同的存根解析器 127.0.0.53,
重新启动后,文件仅以options rotate
有没有一种方法可以options rotate
仅使用systemd-resolved
方法来添加,因为这是 Canonical 开发人员所坚持的?
有没有一种方法(我错过了)可以帮助禁用systemd-resolved
升级后的系统?
由于服务器上的驱动程序问题,它是从 16.04 LTS 全新安装升级而来的。