Skip to content

coredns

Plugin-based DNS server and forwarder for Kubernetes and cloud-native setups

Permissive (OSI) · Apache-2.0
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

83

Health

Thriving

Overview

Stars

14,449

Last commit

today

Nov 2026

Repository age

10 years

since Mar 2016

Latest version

v1.15.0

Oct 2026

Contributors

–

28 active in 90 days

Releases

10

last 12 months

Docker pulls

340M

coredns/coredns

Language

Go

CoreDNS is a DNS server and forwarder written in Go. Its behavior comes from a chain of plugins, and each plugin handles one DNS function. If a feature is missing, you can write a plugin and build it in.

It answers queries over UDP and TCP, DNS over TLS, DNS over HTTP/2 and HTTP/3, DNS over QUIC, and gRPC. Built-in plugins serve zone files, act as a secondary server, sign zones with DNSSEC, cache responses, rewrite queries, forward to other resolvers, and export Prometheus metrics. Other plugins use etcd or Kubernetes as a backend, or integrate with Route 53.

You configure it with a Corefile, and you can run it as a single binary or from a Docker image. It is a graduated Cloud Native Computing Foundation project under the Apache 2.0 license. It suits teams that want a scriptable alternative to managed DNS services or traditional servers like BIND for service discovery and internal DNS.

Who it's for

Kubernetes platform engineers

A Kubernetes plugin provides cluster service discovery.

Skip if: Your managed cluster already ships DNS you do not need to change.

Teams running internal or split-horizon DNS

Zone files, forwarding, caching and rewrites are configured in one Corefile.

Skip if: You need a full recursive resolver with its own cache logic.

Go developers needing custom DNS behavior

You can write your own plugin and compile it in.

Skip if: You do not want to maintain custom builds.

The problem it solves

DNS servers are often hard to extend and awkward to run in container environments. CoreDNS gives you one small server whose behavior you assemble from plugins.

Strengths

  • Plugin chain lets you add or write functions
  • Supports DoT, DoH, DoH3, DoQ and gRPC
  • Kubernetes, etcd and Route 53 integrations
  • Prometheus metrics built in
  • CNCF graduated project, Apache 2.0

Trade-offs

  • Corefile and plugin model take time to learn
  • DNSSEC support for zone data is NSEC only
  • Secondary mode supports AXFR only
  • Custom plugins need a Go build

Self-host coredns

Self-hostable
Yes
Docker image
coredns/coredns

Quick start

cat > Corefile <<EOF
.:53 {
    forward . 8.8.8.8
    log
}
EOF

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is CoreDNS free?

Yes. It is licensed under Apache 2.0.

Can I run it in Docker?

Yes. A Docker image exists, and you can also build it with Docker.

How do I build it?

Install a current Go toolchain, clone the repo and run make. This produces a coredns binary.

Which protocols does it listen on?

UDP/TCP, DoT, DoH over HTTP/2 and HTTP/3, DoQ and gRPC.

Similar tools in Network tools

Mosh

Network tools

Remote terminal that survives roaming, sleep and flaky links, for SSH users

15k 886 8 months ago Dormant GPL-3.0

netshoot

Network tools

Container image of network debugging tools for Docker and Kubernetes troubleshooting

11k 1.1k today Slowing Apache-2.0

MyIP

Network tools

Self-hosted IP toolbox for checking leaks, connectivity, DNS and routes

12k 1.3k 5 days ago Thriving AGPL-3.0

Zenmap

Network tools

Graphical front end for the Nmap network scanner, for admins mapping hosts and ports

14k 3k today Slowing GPL-2.0-only

websocat

Network tools

Command-line client and server for WebSockets, for developers who use netcat, curl or

8.8k 334 10 days ago Active MIT

dnscrypt-proxy

Network tools

Local DNS proxy that encrypts your queries with DoH, DNSCrypt and ODoH

14k 1.1k yesterday Thriving ISC