bind

by QuenchWorks

Helm chartv0.0.8App 9.20.31MPL-2.0Verified publisher

ISC BIND 9 (named): an authoritative or caching recursive DNS server, configured from named.conf and zone files in values. Hardened by QuenchWorks as a nonroot, CVE-gated image, cosign-signed and pinned by digest.

About this chart

Quenchworks bind

Hardened ISC BIND 9 (named), the authoritative and recursive DNS server, on a nonroot CVE-gated image pinned by digest.

Install

helm install dns oci://ghcr.io/quenchworks/charts/bind

The default config is a caching recursive resolver for private networks. For an authoritative server, replace config and add zone files:

config: |
  options {
      directory "/tmp";
      pid-file none;
      listen-on port 5353 { any; };
      recursion no;
      allow-query { any; };
  };
  zone "example.com" { type primary; file "/etc/named/zones/example.com.zone"; };
zones:
  example.com.zone: |
    $TTL 300
    @   IN SOA ns.example.com. admin.example.com. 1 3600 600 86400 300
    @   IN NS  ns.example.com.
    ns  IN A   192.0.2.1
    www IN A   192.0.2.80

named listens on 5353 inside the pod, since the pod runs nonroot. Keep listen-on port 5353 in your config; the Service publishes port 53 over UDP and TCP. A change to config or zones rolls the pods, which is how named picks it up (there is no rndc channel).

Verify the image

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

Each build also ships an SPDX SBOM and SLSA provenance attestation. Verify them with gh attestation verify oci://ghcr.io/quenchworks/images/bind --owner quenchworks.

Configuration

KeyDefaultMeaning
configcaching resolvernamed.conf, at /etc/named/named.conf.
zones{}Zone files by name, at /etc/named/zones/<name>.
replicaCount2Identical servers behind the Service.
service.type, service.portClusterIP, 53UDP and TCP.
service.tlsPort853DNS over TLS (pod 8853), only with tls.enabled
tls.enabledfalseDNS over TLS on 8853 beside plain DNS (cert at /tls); the chart adds the tls statement and a listen-on port 8853 tls line to config's options block
tls.existingSecret""a kubernetes.io/tls Secret to use (1st choice)
tls.certManager.enabledfalserequest a cert-manager Certificate from tls.certManager.issuerRef (2nd choice)
tls.selfSigned.validityDays365otherwise Helm generates a CA + certificate, kept across upgrades

Zones are served from the ConfigMap, so every replica is a primary with the same data. Dynamic updates and zone transfers to secondaries need a writable zone directory: mount one with extraVolumes and point the zone file at it.

Deploy bind with OpenTenant

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