Connect to 1.1.1.1 using DoH clients
There are several DoH clients you can use to connect to 1.1.1.1.
cloudflared
-
Verify that the
cloudflareddaemon is installed by entering the following command: -
Start the DNS proxy on an address and port in your network. If you do not specify an address and port, it will start listening on
localhost:53. DNS (53) is a privileged port, so for the initial demo we will use a different port: -
You can verify that
cloudflaredis running using adig,kdig,host, or any other DNS client. -
Run
cloudflaredas a service so it starts on user login. On many Linux distributions, this can be done with: -
Change your system DNS servers to use
127.0.0.1. On Linux, you can modify/etc/resolv.conf: -
Finally, verify it locally with:
DNSCrypt-Proxy
The DNSCrypt-Proxy 2.0+ supports DoH out of the box. It supports both 1.1.1.1 and other services. It also includes more advanced features, such as load balancing and local filtering.
-
Verify that
dnscrypt-proxyis installed and the version is 2.0 or later: -
Set up the configuration file using the official instructions , and add
cloudflareandcloudflare-ipv6to the server list indnscrypt-proxy.toml: -
Make sure that nothing else is running on
localhost:53, and check that everything works as expected: -
Register it as a system service according to the DNSCrypt-Proxy installation instructions .