CoreDNS is a Go DNS server where each feature is a plugin in a Corefile chain. It answers over classic DNS, TLS, HTTPS, HTTP/3, gRPC, and QUIC transports.
Overview
CoreDNS handles authoritative zones, forwarding, caching, and service discovery by composing small plugins rather than monolithic modules. Operators describe behavior in a Corefile, optionally splitting configuration with imports and environment variable tokens.
In-tree plugins cover file and auto zone loading, secondary AXFR transfer, on-the-fly DNSSEC signing, load-balanced responses, Kubernetes endpoints, forwarding to resolvers, Prometheus metrics, query logging, Route53 and other cloud backends, rewrite rules, DNS64, and profiling hooks. Additional plugins live outside the main tree.
The server listens on UDP and TCP, supports DNS over HTTPS and HTTP/3, DNS-over-TLS, DNS-over-QUIC, and gRPC DNS payloads. Kubernetes clusters commonly deploy it as the cluster DNS; etcd and major cloud DNS APIs also have dedicated plugins.
Binaries can be built from source or container images; default startup loads whoami and log plugins on port 53 unless configured otherwise. The project is a graduated CNCF member and documents deployment via systemd and containers.
Key features
- Pluggable Corefile pipeline
- Kubernetes service discovery
- DNS forwarding and caching
- Prometheus metrics plugin
- DNSSEC signing support
- DoH, DoT, and DoQ listeners
- Cloud provider zone plugins
- Zone transfer and auto reload
Use cases
- Kubernetes cluster DNS
- Authoritative zone hosting
- Recursive forwarding resolver
- Service discovery with etcd
- Metrics-instrumented DNS