Linux
Before you begin, take note of any DNS addresses you might have set up, and save them in a safe place in case you need to use them later.
You can configure 1.1.1.1 using the command line or a graphical interface.
If you want to use 1.1.1.1 for Families instead of the standard resolver, replace 1.1.1.1 in the examples below with the corresponding IPv4 or IPv6 address.
On most Linux distributions, /etc/resolv.conf controls which DNS resolver the system uses.
To set 1.1.1.1 as your DNS resolver with 1.0.0.1 as a backup:
echo -e "nameserver 1.1.1.1\nnameserver 1.0.0.1" | sudo tee /etc/resolv.confYou can also edit /etc/resolv.conf manually with a text editor like nano or vim.
If your system uses systemd-resolved to manage DNS, edit the configuration file at /etc/systemd/resolved.conf:
- Run the following command, replacing
<EDITOR>with your preferred editor.
sudo <EDITOR> /etc/systemd/resolved.conf- In the editor, add or edit the following lines:
[Resolve]DNS=1.1.1.1To use DNS over TLS, append #one.one.one.one after the IP address (this tells systemd-resolved which hostname to use for TLS verification) and set DNSOverTLS to yes:
[Resolve]DNS=1.1.1.1#one.one.one.oneDNSOverTLS=yes- Go to Show Applications > Settings > Network.
- Select the adapter you want to configure — such as your Ethernet adapter or Wi-Fi card — and select the Settings button.
- On the IPv4 tab > DNS section, disable the Automatic toggle.
-
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.11.0.0.1Block malware with 1.1.1.1 for Families
1.1.1.21.0.0.2Block malware and adult content with 1.1.1.1 for Families
1.1.1.31.0.0.3 - Go to IPv6.
-
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::11112606:4700:4700::1001Block malware with 1.1.1.1 for Families
2606:4700:4700::11122606:4700:4700::1002Block malware and adult content with 1.1.1.1 for Families
2606:4700:4700::11132606:4700:4700::1003 - Select Apply.
- Go to System Settings > Wi-Fi & Internet > Wi-Fi & Networking. (or Connections, if on Plasma 5)
- Select the connection you want to configure - like your current connected network.
- On the IPv4 tab, select the Method drop-down menu > Automatic (Only addresses).
- Select the text box next to DNS servers.
-
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.11.0.0.1Block malware with 1.1.1.1 for Families
1.1.1.21.0.0.2Block malware and adult content with 1.1.1.1 for Families
1.1.1.31.0.0.3 - On the IPv6 tab, select the Method drop-down menu > Automatic (Only addresses).
- Select the text box next to DNS servers.
-
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::11112606:4700:4700::1001Block malware with 1.1.1.1 for Families
2606:4700:4700::11122606:4700:4700::1002Block malware and adult content with 1.1.1.1 for Families
2606:4700:4700::11132606:4700:4700::1003 - Select Apply.