# What does a DNS lookup of a headless Service (clusterIP: None) with a selector return?

Kubernetes, Hard (Expert), Networking. https://k8wiz.com/uquiz/what-does-a-dns-lookup-of-a-headless-service-clusterip-none-with-a-selector-return

- A. A single virtual IP that kube-proxy load-balances
- B. The IP addresses of the nodes running the pods
- C. No records, because headless Services aren't registered in DNS
- D. The IP addresses of the ready pods behind the Service

**Answer:** The IP addresses of the ready pods behind the Service

**Explanation:** A headless Service gets no cluster IP, so kube-proxy doesn't handle it. CoreDNS answers with an A or AAAA record for each ready endpoint, and the client chooses which pod to connect to. StatefulSets rely on this to give each pod a stable DNS name such as web-0.web.default.svc.cluster.local.
