Secondary DNS - Deep Dive
Sep 15, 2020Alex Fattouche

Summary
This post details the migration of Cloudflare's Secondary DNS service from Mesos Marathon to Kubernetes. It outlines the challenges of creating a distributed and reliable system in Kubernetes while protecting individual data centers from DDoS attacks. The solution involved proxying egress traffic from Kubernetes to primary DNS servers using Shadowsocks-libev for SOCKS5 implementation, and using Spectrum for DDoS protection of the Notify Listener service. The post also explains the underlying concepts of Secondary DNS, including SOA serial tracking, zone transfers (AXFR and IXFR), and the use of TSIG for security.
More from the DNS Infrastructure & Naming Conventions trail
- The keys to the Internet change on October 11, 2026. Are you ready?
- 1.1.1.1 now supports post-quantum DNSSEC, all 2,420 bytes of it
- How we saved 100 terabytes of memory by optimizing 1.1.1.1’s DNS cache
- BGP ORIGIN attribute manipulation and its impact on the Internet
- Cloudflare Internal DNS is now generally available