dnsdist

by NTP Pool Project

Helm chartv0.1.0App 1.4.0-1Verified publisher

A Helm chart for Kubernetes

About this chart

dnsdist for kubernetes

This chart helps configure dnsdist to run under Kubernetes.

Example config

The following values.yaml override will setup a basic DOH server forwarding requests to Google DNS and Quad9.

config:
  dnsdist.conf: |
    addDOHLocal("0.0.0.0:8053", nil, nil, "/dns-query", { reusePort=true })
    newServer({address="8.8.8.8:53", qps=10})
    newServer({address="9.9.9.11:53", qps=100})
    setServerPolicy(firstAvailable)
    webserver("0.0.0.0:8083", "secret", "secret")
    addLocal("0.0.0.0:5300", { reusePort=true })

healthCheckHeaders: {}
- name: Authorization
  value: Basic aGVsbG86c2VjcmV0

Add an ingress: key to enable an ingress for the service (see values.yaml).

TODO

  • Support non-DOH use-cases
  • UDP service

Deploy dnsdist with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dnsdist 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 chartdnsdist is pinned at v0.1.0 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