Cloudflare Docs
1.1.1.1
Visit 1.1.1.1 on GitHub
Set theme to dark (⇧+D)

Set up 1.1.1.1 - Linux

Follow these steps to configure 1.1.1.1 in Ubuntu and Debian:

Ubuntu

  1. Click System > Preferences > Network Connections.

  2. Select the Wireless tab, then choose the WiFi network you are currently connected to.

  3. Click Edit > IPv4.

  4. Take note of any IP addresses you might have and save them in a safe place in case you need to use them later.

  5. Change the DNS servers listed to:

    1.1.1.1
    1.0.0.1
  6. Click Apply.

  7. Then, go to IPv6 and add the DNS servers:

    2606:4700:4700::1111
    2606:4700:4700::1001
  8. Click Apply.

Debian

  1. In the command line, type:
$ sudo vim /etc/resolv.conf
  1. Press the i key on your keyboard to edit the document.
  2. Take note of any IP addresses you might have and save them in a safe place in case you need to use them later.
  3. Replace the nameserver lines with:

For IPv4:

<pre class="CodeBlock CodeBlock-with-rows CodeBlock-scrolls-horizontally CodeBlock-is-light-in-light-theme CodeBlock--language-txt" language="txt"><code><span class="CodeBlock--rows"><span class="CodeBlock--rows-content"><span class="CodeBlock--row"><span class="CodeBlock--row-indicator"></span><div class="CodeBlock--row-content"><span class="CodeBlock--token-plain">    nameserver 1.0.0.1</span></div></span><span class="CodeBlock--row"><span class="CodeBlock--row-indicator"></span><div class="CodeBlock--row-content"><span class="CodeBlock--token-plain">    nameserver 1.1.1.1</span></div></span><span class="CodeBlock--row"><span class="CodeBlock--row-indicator"></span><div class="CodeBlock--row-content"><span class="CodeBlock--token-plain">    </span></div></span></span></span></code></pre>

For IPv6:

<pre class="CodeBlock CodeBlock-with-rows CodeBlock-scrolls-horizontally CodeBlock-is-light-in-light-theme CodeBlock--language-txt" language="txt"><code><span class="CodeBlock--rows"><span class="CodeBlock--rows-content"><span class="CodeBlock--row"><span class="CodeBlock--row-indicator"></span><div class="CodeBlock--row-content"><span class="CodeBlock--token-plain">    nameserver 2606:4700:4700::1111</span></div></span><span class="CodeBlock--row"><span class="CodeBlock--row-indicator"></span><div class="CodeBlock--row-content"><span class="CodeBlock--token-plain">    nameserver 2606:4700:4700::1001</span></div></span><span class="CodeBlock--row"><span class="CodeBlock--row-indicator"></span><div class="CodeBlock--row-content"><span class="CodeBlock--token-plain">    </span></div></span></span></span></code></pre>
  1. Press the ESC key on your keyboard to save and exit Vim. Then, type:

    :wq