Ubuntuのsystemd-resolvedでlocal DNS stub listenerの利用をやめる

提供:FirstWiki
ナビゲーションに移動 検索に移動

netplan と systemd-networkd で設定する

/etc/systemd/resolved.conf

  • #DNSStubListener=yesDNSStubListener=no

resolv.conf のシンボリックリンクを作成

# ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf

systemd-resolved を再起動

# systemctl restart systemd-resolved