// readme

FINI coredns example

A complete example demonstrating how to use DNSControl to generate DNS zone files and serve them with CoreDNS in a container.

What’s Included

This repository provides:

  • JavaScript DNS Configuration: Define DNS records using DNSControl’s JavaScript syntax for example.com and example.org domains
  • Automated Zone File Generation: Convert JavaScript configurations to BIND zone files with just push
  • Containerized DNS Server: Ready-to-run CoreDNS container serving the generated zones
  • Automated Testing: Go test suite validating DNS responses for 10+ specific records
  • Development Workflow: Complete just command recipes for building, testing, and deploying
  • GitHub Container Registry: Pre-built container images available at ghcr.io/fini-net/fini-coredns-example

Quick Start

  1. Generate zone files: just push (uses DNSControl to create BIND files from JavaScript)
  2. Build container: just build_con (creates local container with CoreDNS + zone files)
  3. Start DNS server: just run_con (runs container on port 1029)
  4. **Test…