How to Install Dnscrypt Proxy in Ubuntu

The dnscrypt-proxy 2.0+ supports DoH out of the box. It supports both, and other services. It includes more advanced features, such as load balancing and local filtering.

How to Install Dnscrypt Proxy in Ubuntu - Techzost blog

Step 1: Install the dnscrypt-proxy. You can find the instructions here.

Step 2: Verify that the dnscrypt-proxy is installed, and at least version 2.0

$ dnscrypt-proxy -version

Step 3: Set up the configuration file using the official instructions, and add ‘cloudflare’ and ‘cloudflare-ipv6’ to the server list in dnscrypt-proxy.toml

server_names = ['cloudflare', 'cloudflare-ipv6']

Step 4: Make sure that nothing else is running on localhost:53, and check that everything works as expected

dnscrypt-proxy -resolve
Resolving []

Domain exists:  yes, 3 name servers found
Canonical name:
IP addresses:   2400:cb00:2048:1::6810:6f19, 2400:cb00:2048:1::6810:7019,,
TXT records:    -
Resolver IP:

Step 5: Register it as a system service using the instructions here

How to Uninstall Dnscrypt Proxy in Ubuntu

$ sudo apt purge dnscrypt-proxy