コンテンツにスキップ

Linux

始める前に、設定したDNSアドレスをメモし、安全な場所に保存しておいてください。後で必要になるかもしれません。

以下のセクションを参照して、コマンドラインインターフェース (CLI)またはお好みのグラフィカルユーザーインターフェース (GUI)を使用して1.1.1.1を設定してください。

コマンドラインインターフェース (CLI) の使用

1.1.1.1または1.1.1.1 For Familiesのいずれかを使用するかを選択し、1.1.1.1を対応するIPv4またはIPv6アドレスに置き換えてください。

resolv.conf

通常、/etc/resolv.confは、システムが使用しているリゾルバIPを設定する場所です。

その場合、次の1行コマンドを使用して、1.1.1.1をDNSリゾルバとして、1.0.0.1をバックアップとして指定できます。

Terminal window
echo -e "nameserver 1.1.1.1\nnameserver 1.0.0.1" | sudo tee /etc/resolv.conf

または、エディタ(nanovimなど)を使用して手動でファイルを編集することもできます。

systemd-resolved

systemd-resolvedユーティリティを使用していて、リゾルバIPの設定が/etc/systemd/resolved.confにある場合は、以下の手順を考慮してください。

  1. 次のコマンドを実行し、<EDITOR>をお好みのエディタに置き換えます。
Terminal window
sudo <EDITOR> /etc/systemd/resolved.conf
  1. エディタで、次の行を追加または編集します。
[Resolve]
DNS=1.1.1.1

グラフィカルユーザーインターフェース (GUI) の使用

GNOME

  1. アプリケーションの表示 > 設定 > ネットワークに移動します。
  2. 設定したいアダプタ(イーサネットアダプタやWi-Fiカードなど)を選択し、設定ボタンを選択します。
  3. IPv4タブ > DNSセクションで、自動トグルを無効にします。
  4. Depending on what you want to configure, choose one of the following DNS addresses for IPv4:

    Use 1.1.1.1 resolver

    1.1.1.1
    1.0.0.1

    Block malware with 1.1.1.1 for Families

    1.1.1.2
    1.0.0.2

    Block malware and adult content with 1.1.1.1 for Families

    1.1.1.3
    1.0.0.3
  5. IPv6に移動します。
  6. Depending on what you want to configure, choose one of the following DNS addresses for IPv6:

    Use 1.1.1.1 resolver

    2606:4700:4700::1111
    2606:4700:4700::1001

    Block malware with 1.1.1.1 for Families

    2606:4700:4700::1112
    2606:4700:4700::1002

    Block malware and adult content with 1.1.1.1 for Families

    2606:4700:4700::1113
    2606:4700:4700::1003
  7. 適用を選択します。

KDE Plasma

  1. システム設定 > Wi-Fi & インターネット > Wi-Fi & ネットワーキングに移動します。(Plasma 5の場合は接続
  2. 設定したい接続(現在接続中のネットワークなど)を選択します。
  3. IPv4タブで、方法ドロップダウンメニュー > _自動 (アドレスのみ)_を選択します。
  4. DNSサーバーの隣のテキストボックスを選択します。
  5. Depending on what you want to configure, choose one of the following DNS addresses for IPv4:

    Use 1.1.1.1 resolver

    1.1.1.1
    1.0.0.1

    Block malware with 1.1.1.1 for Families

    1.1.1.2
    1.0.0.2

    Block malware and adult content with 1.1.1.1 for Families

    1.1.1.3
    1.0.0.3
  6. IPv6タブで、方法ドロップダウンメニュー > _自動 (アドレスのみ)_を選択します。
  7. DNSサーバーの隣のテキストボックスを選択します。
  8. Depending on what you want to configure, choose one of the following DNS addresses for IPv6:

    Use 1.1.1.1 resolver

    2606:4700:4700::1111
    2606:4700:4700::1001

    Block malware with 1.1.1.1 for Families

    2606:4700:4700::1112
    2606:4700:4700::1002

    Block malware and adult content with 1.1.1.1 for Families

    2606:4700:4700::1113
    2606:4700:4700::1003
  9. 適用を選択します。