Connect to 1.1.1.1 using DoH clients
There are several DoH clients you can use to connect to 1.1.1.1.
-
Verify that the
cloudflared
daemon 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
cloudflared
is running using adig
,kdig
,host
, or any other DNS client. -
Run
cloudflared
as 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:
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-proxy
is installed and the version is 2.0 or later: -
Set up the configuration file using the official instructions ↗, and add
cloudflare
andcloudflare-ipv6
to 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 ↗.