systemd-resolvedはUbuntu 18.04をスピンアップするオプションを追加します。

systemd-resolvedはUbuntu 18.04をスピンアップするオプションを追加します。

Ubuntu 18.04 LTSアップグレードoptions rotateに追加しようとしています。resolv.conf

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

16.04 LTSからアップグレードされた18.04 LTS

18.04 LTSと同じステップ、resolv.conf同じスタブレゾルバ127.0.0.53で終わる

再起動後、ファイルは次に終了します。options rotate

Canonical開発者が主張するようにメソッドoptions rotateのみを使用して追加する方法はありますか?systemd-resolved

systemd-resolvedアップグレードされたシステムを無効にするのに役立つ方法はありますか?

サーバーのドライバーの問題により、16.04 LTSを新規インストールしてアップグレードしました。

ベストアンサー1

おすすめ記事