Volver al ranking

DNSCrypt/encrypted-dns-server

Rust

An easy to install, high-performance, zero maintenance proxy to run an encrypted DNS server.

dnscryptproxydnsprivacyanonymizeddohserver
Crecimiento de estrellas
Estrellas
1.3k
Forks
130
Crecimiento semanal
Issues
0
5001k
ene 2023mar 2024may 2025jul 2026
Artefactoscrates.iocargo add encrypted-dns-server
README

Encrypted DNS Server

Github CI status Gitter chat

An easy to install, high-performance, zero maintenance proxy to run an encrypted DNS server.

Dashboard

Protocols

The proxy supports the following protocols:

All of these can be served simultaneously, on the same port (usually port 443). The proxy automatically detects what protocol is being used by each client.

Installation

Option 1: precompiled x86_64 binary

Debian packages, archives for Linux and Windows can be downloaded here.

Nothing else has to be installed. The server doesn't require any external dependencies.

In the Debian package, the example configuration file can be found in /usr/share/doc/encrypted-dns/.

Option 2: compilation from source code

The proxy requires rust and a C compiler (clang is recommended).

Rust can installed with:

curl -sSf https://sh.rustup.rs | bash -s -- -y --default-toolchain nightly
source $HOME/.cargo/env

Once rust is installed, the proxy can be compiled and installed as follows:

cargo install encrypted-dns
strip ~/.cargo/bin/encrypted-dns

The executable file will be copied to ~/.cargo/bin/encrypted-dns by default.

Options 3: Docker

dnscrypt-server-docker is the most popular way to deploy an encrypted DNS server.

This Docker image that includes a caching DNS resolver, the encrypted DNS proxy, and scripts to automatically configure everything.

Setup

The proxy requires a recursive DNS resolver, such as Knot, PowerDNS or Unbound.

That resolver can run locally and only respond to 127.0.0.1. External resolvers such as Quad9 or Cloudflare DNS can also be used, but this may be less reliable due to rate limits.

In order to support DoH in addition to DNSCrypt, a DoH proxy must be running as well. rust-doh is the recommended DoH proxy server. DoH support is optional, as it is currently way more complicated to setup than DNSCrypt due to certificate management.

Make a copy of the example-encrypted-dns.toml configuration file named encrypted-dns.toml.

Then, review the encrypted-dns.toml file. This is where all the parameters can be configured, including the IP addresses to listen to.

You should probably at least change the listen_addrs and provider_name settings.

Start the proxy. It will automatically create a new provider key pair if there isn't any.

The DNS stamps are printed. They can be used directly with dnscrypt-proxy.

There is nothing else to do. Certificates are automatically generated and rotated.

Migrating from dnscrypt-wrapper

If you are currently running an encrypted DNS server using dnscrypt-wrapper, moving to the new proxy is simple:

  • Double check that the provider name in encrypted-dns.toml matches the one you previously configured. If you forgot it, it can be recovered from its DNS stamp.
  • Run encrypted-dns --import-from-dnscrypt-wrapper secret.key, with secret.key being the file with the dnscrypt-wrapper provider secret key.

Done. Your server is now running the new proxy.

Built-in DNS cache

The proxy includes a key cache, as well as a DNS cache to significantly reduce the load on upstream servers.

In addition, if a server is slow or unresponsive, expired cached queries will be returned, ensuring that popular domain names always keep being served.

State file

The proxy creates and updates a file named encrypted-dns.state by default. That file contains the provider secret key, as well as certificates and encryption keys.

Do not delete the file, unless you want to change parameters (such as the provider name), and keep it secret, or the keys will be lost.

Putting it in a directory that is only readable by the super-user is not a bad idea.

Filtering

Domains can be filtered directly by the proxy, see the [filtering] section of the configuration file. Note: Filtering only works with the DNSCrypt protocol and does not apply to DNS-over-HTTPS (DoH) forwarding.

Access control

Access control can be enabled in the [access_control] section and configured with the query_meta configuration value of dnscrypt-proxy.

Prometheus metrics

Prometheus metrics can optionally be enabled in order to monitor performance, cache efficiency, and more.

Anonymized DNSCrypt

Enabling Anonymized DNSCrypt allows the server to be used as an encrypted DNS relay.

Repositorios relacionados
AdguardTeam/AdGuardHome

Network-wide ads & trackers blocking DNS server

TypeScriptnpmGNU General Public License v3.0dnsadblock
adguard.com/adguard-home/overview.html
35.6k2.4k
DNSCrypt/dnscrypt-proxy

dnscrypt-proxy 2 - A flexible DNS proxy, with support for encrypted DNS protocols.

GoGo ModulesISC Licensednscryptdnscrypt-proxy2
dnscrypt.info
13.5k1.1k
celzero/rethink-app

DNS over HTTPS / DNS over Tor / DNSCrypt client, WireGuard proxifier, firewall, and connection tracker for Android.

KotlinApache License 2.0android-appfirewall
rethinkfirewall.com
5.2k309
crazy-max/WindowsSpyBlocker

Block spying and tracking on Windows

GoGo ModulesMIT Licensewindowsspy
crazymax.dev/WindowsSpyBlocker/
5.1k387
AdguardTeam/dnsproxy

Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support

GoGo ModulesApache License 2.0golangdns
3.2k331
Gedsh/InviZible

Android application for online privacy and security

JavaMavenGNU General Public License v3.0dnscrypttor
invizible.net
2.7k160
DNSCrypt/SimpleDnsCrypt

A simple management tool for dnscrypt-proxy

C#MIT Licensednscryptography
simplednscrypt.org
2.4k249
bitbeans/SimpleDnsCrypt

A simple management tool for dnscrypt-proxy

C#MIT Licensednscryptography
simplednscrypt.org
2.3k238
notracking/hosts-blocklists

Automatically updated, moderated and optimized lists for blocking ads, trackers, malware and other garbage

blocklisthostfile
2.3k142
DNSCrypt/dnscrypt-resolvers

Lists of public DNSCrypt / DoH DNS servers and DNS relays - Actively maintained since 2011.

GoGo Modulesdnscryptdnscrypt-proxy
dnscrypt.info
1.5k304
msasanmh/DNSveil

A DNS Client Supporting DNSCrypt, Anonymized DNSCrypt, DoH, DoT, UDP And TCP.

C#GNU General Public License v3.0dnslookupdpi-bypassing
msasanmh.github.io/DNSveil/
1.3k114
DNSCrypt/doh-server

Fast, mature, secure DoH and ODoH server proxy written in Rust. Previously known as doh-proxy and rust-doh.

Rustcrates.ioMIT Licensedohdns
1k100