dnscrypt-proxy

by QuenchWorks

Helm chartv0.0.4App 2.1.21ISCVerified publisher

dnscrypt-proxy: a DNS proxy that sends queries to upstream resolvers over DNSCrypt, DNS-over-HTTPS or Oblivious DoH, with filtering, cloaking and caching. Hardened by QuenchWorks: built from source, nonroot, CVE-gated, cosign-signed and pinned by digest.

About this chart

Quenchworks dnscrypt-proxy

Hardened dnscrypt-proxy: a DNS proxy that answers plain DNS in the cluster and sends queries upstream over DNSCrypt v2, DNS-over-HTTPS or Oblivious DoH, with filtering, cloaking (local overrides) and caching. It pairs with the Blocky chart as an encrypted upstream. The image is built from source, runs as uid 1001 and is CVE-gated at build, cosign-signed and pinned by digest.

Install

helm install edns oci://ghcr.io/quenchworks/charts/dnscrypt-proxy
kubectl run -it --rm q --image=ghcr.io/quenchworks/images/busybox:1.38.0 --restart=Never --command -- nslookup example.com edns-dnscrypt-proxy

Configuration

config is dnscrypt-proxy.toml written as YAML (the chart renders the TOML). It goes to dnscrypt-proxy unchanged except listen_addresses, which the chart sets. The default uses Cloudflare and Quad9 over DNS-over-HTTPS as static servers, so nothing is downloaded at start. Rule files go in files and are mounted at /etc/dnscrypt-proxy/<name>:

config:
  cloaking_rules: /etc/dnscrypt-proxy/cloaking.txt
  blocked_names:
    blocked_names_file: /etc/dnscrypt-proxy/blocked.txt
files:
  cloaking.txt: |
    printer.lan 10.0.0.20
  blocked.txt: |
    ads.example.com
KeyDefaultWhat it does
configCloudflare + Quad9 DoH, cachednscrypt-proxy.toml as YAML
files{}Rule files mounted next to the config
service.dnsPort53DNS on UDP and TCP (container port 5353)
extraArgs[]More dnscrypt-proxy arguments

Verify the image

cosign verify ghcr.io/quenchworks/images/dnscrypt-proxy \
  --certificate-identity-regexp 'https://github.com/quenchworks/.+' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Deploy dnscrypt-proxy with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dnscrypt-proxy on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdnscrypt-proxy is pinned at v0.0.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply