惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
MyScale Blog
MyScale Blog
M
MIT News - Artificial intelligence
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
The Blog of Author Tim Ferriss
Martin Fowler
Martin Fowler
博客园 - 【当耐特】
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
C
Check Point Blog
Last Week in AI
Last Week in AI
F
Fortinet All Blogs
博客园 - 聂微东
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
GbyAI
GbyAI
云风的 BLOG
云风的 BLOG

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
DNSControl + CoreDNS Container Example - Announcement
Christopher · 2026-05-27 · via DEV Community
Cover image for DNSControl + CoreDNS Container Example - Announcement

Christopher Hicks

I'm excited to share a comprehensive example repository that demonstrates the complete workflow from DNSControl JavaScript configurations to a production-ready containerized DNS server:

🔗 Repository: https://github.com/fini-net/fini-coredns-example

{{< github_repo owner=fini-net repo=fini-coredns-example >}}

What This Provides

This repository showcases a real-world implementation of:

  • JavaScript DNS Configuration: Clean, maintainable DNS record definitions using DNSControl syntax - DNSControl → CoreDNS Integration: Many don't realize that DNSControl's BIND provider generates zone files that CoreDNS can serve directly! - Automated BIND Zone Generation: dnscontrol push converts JS configs to standard BIND zone files - Containerized DNS Server: CoreDNS container serving the generated zones (available in GHCR) - Comprehensive Testing: Go test suite validating DNS responses for A, AAAA, CNAME, TXT, NS, and MX records - Complete Development Workflow: just command recipes for the entire build → test → deploy cycle

Key Features

  • Two Example Domains: example.com (traditional setup) and example.org (Google Workspace integration) - RFC Compliance: Uses reserved domains (RFC2606) and private IP ranges (RFC1918/RFC4193) - Automated Testing: 10+ specific DNS record validations with detailed test output - Container Registry: Pre-built images available at ghcr.io/fini-net/fini-coredns-example - Documentation: Complete setup instructions and usage examples

Quick Demo

bash git clone https://github.com/fini-net/fini-coredns-example cd fini-coredns-example just push # Generate BIND files from JavaScript (optional, already in the container) just build_con # Build CoreDNS container (optional, container is in GHCR) just run_con # Start DNS server on port 1029 just test_quick # Run quick test (just a dig) just test_dns # Run automated test suite (written in Golang)

Why This Matters

If you're already using DNSControl to manage your DNS configurations, you've probably wondered about the next step: how do you actually serve those zones reliably? This repository addresses common sysadmin challenges:

  1. "How do I test my DNS changes before they go live?" - Automated Go tests validate actual DNS responses, not just config syntax 2. "Can I run my own authoritative DNS without BIND complexity?" - CoreDNS provides a simpler, container-native alternative that directly consumes DNSControl's BIND output 3. "How do I integrate DNS deployment into modern infrastructure?" - Complete containerization with pre-built GHCR images and just workflow automation 4. "What's the path from DNSControl development to production DNS service?" - End-to-end example from JavaScript configs to running DNS server

The testing component is particularly valuable for sysadmins - it validates not just that your DNSControl configs compile, but that they actually resolve correctly when served to clients. No more deploying DNS changes and hoping they work!

Use Cases

  • Learning DNSControl: See practical JavaScript DNS configurations in action - Container Deployment: Reference implementation for containerized DNS services - Testing Patterns: Example of automated DNS validation - CI/CD Integration: Templates for automated DNS deployment workflows

I hope this helps teams looking to implement robust DNS management workflows. The repository includes comprehensive documentation and follows DNS best practices throughout.

Feedback and contributions are very welcome!