0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Ubuntu 20.04 LTS DNS設定

Last updated at Posted at 2021-03-16

Ubuntu 20.04 LTS環境での DNSリゾルバ設定

resolveconf のスタブリゾルバを働かせたくない場合の設定方法

DNSを固定してしまう

例えばGoogle DNS(8.8.8.8)

$ systemd-resolve --set-dns=8.8.8.8 --interface=enp0s25

その後、適宜再起動・設定確認する。

$ systemd-resolve restart
$ systemd-resolve --status

resolvconf をアンインストール

乱暴だがこれでも解決する。

$ apt purge resolvconf

後にresolv.confにnameserverを通常通りDNSアドレスを記述する。

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?