Cloud VPS from $1.98/mo · pay with Bitcoin, Ethereum, Monero, USDT or Solana · paid in crypto

CoreDNS on a VPS

CoreDNS is a DNS server written in Go where every feature is a plugin. Use it as a caching resolver, an authoritative server or split DNS for private names.

512 MBMinimum memory
Ubuntu 24.04 LTSBase image
53/udp, 53/tcpPorts
Apache-2.0License

About CoreDNS

CoreDNS is a DNS server written in Go and a graduated CNCF project, best known as the default cluster DNS in Kubernetes. Every feature is a plugin, and a short Corefile chains them: forwarding, caching, zone files, rewrites and metrics. Apache-2.0.

A DNS server wants a stable address and a dependable network. A CloudSat server gives CoreDNS a dedicated IPv4 and IPv6, DDoS filtering upstream and reverse DNS you set in the console.

After deploy CoreDNS listens on port 53. You decide what it does by editing the Corefile and restarting it.

What you get with CoreDNS

  • Behavior defined in a few lines of Corefile
  • Forwarding to upstream resolvers, DNS over TLS included
  • Response caching
  • Authoritative zones from files, with DNSSEC
  • Prometheus metrics and health checks
  • Query rewrites and access control lists

CoreDNS use cases

  • A caching resolver for your servers and VPN clients
  • Authoritative DNS for your own domains
  • Split DNS for internal service names

After you deploy CoreDNS

  1. SSH in after the server shows Running and test it: dig @127.0.0.1 example.com should return an answer.
  2. Edit the Corefile CoreDNS loads: forward to upstream resolvers, cache for repeat queries, file for zones you serve.
  3. If it forwards queries, allow port 53 only from your own networks in the CloudSat firewall.
  4. Enable prometheus for metrics on port 9153 and health for probes, keeping both private.

CoreDNS ports

Open these in your firewall if you use one: 53/udp DNS, 53/tcp DNS.

CoreDNS FAQ

Should my CoreDNS answer the whole internet?

Only for authoritative zones. An open forwarding resolver gets abused for amplification attacks, so limit recursive queries to your own IPs with a firewall rule or the acl plugin.

What does a minimal Corefile look like?

A server block for . with two lines, forward . 9.9.9.9 and cache, gives you a caching resolver. Add log while testing to see each query.

Disclaimer. The CoreDNS project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.

CoreDNS on your own server.
Ready in under 5 minutes.

Pick a region and a size; the console shows the address as soon as it is up.

Every server delivered in under 5 minutesPay with crypto14-day money-back