Skip to main content
Account

CoreDNS

CoreDNS is a Go DNS server and the default Kubernetes cluster DNS. Learn how the Corefile plugin chain handles service discovery and forwarding.

Status
Stable
Category
Orchestration & Management
Subcategory
Coordination & Service Discovery
License
Apache-2.0
Technology matrix Adopt Production ready See the matrix

CoreDNS is a DNS server written in Go that has been the default cluster DNS for Kubernetes since 1.13, replacing kube-dns. Inside a Kubernetes cluster it resolves my-svc.my-namespace.svc.cluster.local to Service ClusterIPs, handles Pod A records, and forwards everything else upstream.

Its defining feature is the plugin chain. CoreDNS is built on the same Caddy core as the Caddy web server, and every feature — zone files, caching, Kubernetes service discovery, Prometheus metrics, rewrites, DNS-over-TLS — is a plugin compiled into the binary and composed via a Corefile. A query walks through the chain until a plugin answers it. The order in the Corefile matters, and swapping plugins in or out is a recompile (go build with a plugin list) rather than a dynamic load, which keeps the runtime small and predictable.

Beyond Kubernetes, CoreDNS is used as an authoritative and recursive DNS server in its own right, with backends for etcd, Consul, file-based zones, and external plugins for Redis, route53, and more. It’s a CNCF graduated project and, in practical terms, the de-facto DNS server of the cloud-native world — if you’re running Kubernetes, you’re running CoreDNS.

CoreDNS recordings

22 recordings, newest first

1h 17m

Alex Jones & Alistair Hey Debug tc Traffic Delays and a Rogue kubectl Alias

1h 28m

Hans Kristian Flaatten & Zach Wachtel: Bad kubeconfig, etcd Encryption, Cilium

59 min

Global DNS with BGP

1h 33m

IBM vs Nisum: A Sabotaged Cilium Operator and a Tampered CoreDNS ConfigMap

1h 29m

Adobe vs Zapier: Admission Webhooks, Cilium and a Cloud Custodian DNS Revert

1h 42m

Polar Signals vs Pulumi: Wrong API Server Address and a containerd Cgroup Trap

49 min

Identical Twins Borko & Bojan Debug Kubernetes: Cilium Deny, CoreDNS Rewrite

1h 51m

William Lightning Debugs Kubernetes: a Cilium Image Typo and Rogue resolv.conf

1h 23m

Ambassador Labs vs Fairwinds: CoreDNS Hijack and a Self-Recreating Policy

1h 42m

Russell Waite & Marek Counts Debug a Recompiled kubectl and Rogue Process

1h 11m

Eric Smalling & Carlos Santana Debug Rogue Static Pods and a Webhook

1h 18m

Ádám Szücs-Mátyás & William Lightning: Harbor Redirects and a Full etcd Disk

1h 21m

Rawkode vs the Community: eBPF Kubelet Redirects and a Static Manifest Trick

1h 45m

Rachel Leekin & Andy Holtzmann Debug a Fake kubectl and DNS Hijack

1h 37m

Marek Counts & Abdel Sghiouar Debug an eBPF Port Blocker in Kubernetes

1h 36m

Walid Shaari & Noel Georgi Debug Kubernetes RBAC, Webhooks and CoreDNS

1h 29m

Marcos Nils Debugs Kubernetes: Rogue Debugger Pod and a Mutating Webhook

2h 20m

Guinevere Saenger Debugs Kubernetes: Cilium, Kyverno Webhooks, CoreDNS Typo

2h 13m

Duffie Cooley Fixes Kubernetes: ImagePolicyWebhook, Kyverno, etcd Starvation

2h

Jason DeTiberus Debugs Kubernetes: Rogue Processes, Full Inodes, Rickroll

1h 35m

Walid Shaari Debugs Broken Kubernetes Clusters: Cilium iptables, Swap and etcd

59 min

Hands-on Introduction to CoreDNS

Coordination & Service Discovery

Email signup loads here. You can also manage email preferences in account settings.

Build CoreDNS? I'll show you where engineers get stuck with it → Back free content for the community →