Set up 1.1.1.1 - Linux
Follow these steps to configure 1.1.1.1 in Ubuntu and Debian:
Ubuntu
Click System > Preferences > Network Connections.
Select the Wireless tab, then choose the WiFi network you are currently connected to.
Click Edit > IPv4.
Take note of any IP addresses you might have and save them in a safe place in case you need to use them later.
Change the DNS servers listed to:
1.1.1.11.0.0.1Click Apply.
Then, go to IPv6 and add the DNS servers:
2606:4700:4700::11112606:4700:4700::1001Click Apply.
Debian
- In the command line, type:
$ sudo vim /etc/resolv.conf
- Press the i key on your keyboard to edit the document.
- Take note of any IP addresses you might have and save them in a safe place in case you need to use them later.
- Replace the
nameserverlines 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>
Press the ESC key on your keyboard to save and exit Vim. Then, type:
:wq