10 DNS in Kubernetes

This chapter covers

  • Reviewing DNS in Kubernetes clusters
  • Exploring hierarchical DNS
  • Examining the default DNS in a Pod
  • Configuring CoreDNS

DNS has existed as long as the internet. Microservices make it hard to manage DNS records at scale because they require an explosion in the use of domain names on an internal data center. Kubernetes standards around DNS for Pods make DNS extremely easy, such that individual applications rarely need to follow complex guidelines for finding downstream services. This is generally enabled by CoreDNS (https://github.com/coredns/coredns), which is at the heart of this chapter.

10.1 A brief intro to DNS (and CoreDNS)

The job of any DNS server is to map DNS names (like www.google.com) to IP ...

Get Core Kubernetes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.