CKA · Services and Networking · lesson 9 of 10

CoreDNS: Service Discovery and DNS in Kubernetes

How CoreDNS works as Kubernetes' DNS backbone: plugin chain internals, DNS record formats for Services and Pods, the default Corefile, and ndots:5 behavior.

11 min · Exam domain: Services and Networking (20%)

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.

Enroll to read the rest of this lesson

Free. Your progress and certificate come with it.

Enroll, free