KubeDojo

CoreDNS: Service Discovery and DNS in Kubernetes

AK
by Alexis Kinsella··10 min read
CoreDNS: Service Discovery and DNS in Kubernetes

A service call fails with "no such host." The service exists, the name looks right, the Pod is running. You check kubectl get svc: it's there. You check the pod logs: it's clearly trying to resolve the name. Nothing obvious is broken, but DNS isn't resolving it.

Every service-to-service call in a Kubernetes cluster goes through CoreDNS. It's the cluster's phonebook. This lesson covers how CoreDNS is deployed, what DNS records it maintains, how the Corefile plugin chain works, and how ndots:5 shapes every name resolution in your cluster. For custom Corefile configuration, stub domains, and a step-by-step troubleshooting runbook, see DNS Troubleshooting and Custom CoreDNS Configuration.

Sign in to access this lesson

Create a free account or sign in to enroll in the CKA — Certified Kubernetes Administrator course and access all 63 lessons.

CKA — Certified Kubernetes Administrator

63 lessons

Browse the full course curriculum →
CoreDNS: Service Discovery and DNS in Kubernetes — KubeDojo