Kubernetes DNS: records for Services and Pods
Answer: Kubernetes creates DNS records for Services and for Pods. You can use consistent DNS names instead of IP addresses. Services defined in the cluster are assigned DNS names. DNS queries that do not specify a namespace are limited to the Pod's namespace.
Notes
Kubernetes publishes information about Pods and Services which is used to program DNS. Access Services in other namespaces by specifying the namespace in the DNS query.
Reference list
Servicesget DNS records, and so do Pods.contactServices with consistent DNS names, not IP addresses.Querieswithout a namespace stay limited to the Pod namespace.
See also
Claims
- id: C1 claim: Kubernetes creates DNS records for Services and Pods. source: S1 evidence: "Kubernetes creates DNS records for Services and Pods"
- id: C2 claim: You can contact Services with consistent DNS names instead of IP addresses. source: S1 evidence: "You can contact Services with consistent DNS names instead of IP addresses"
- id: C3 claim: Queries without a namespace stay limited to the Pod namespace. source: S2 evidence: "DNS queries that don't specify a namespace are limited to the Pod's namespace"
Sources
- [S1] DNS for Services and Pods. Kubernetes docs. https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/ . License: CC-BY-4.0. Accessed 2026-11-18.
- [S2] dns-pod-service.md. Kubernetes website. https://raw.githubusercontent.com/kubernetes/website/main/content/en/docs/concepts/services-networking/dns-pod-service.md . License: CC-BY-4.0. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, DNS for Services and Pods; Kubernetes website, dns-pod-service.md. CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, DNS for Services and Pods; Kubernetes website, dns-pod-service.md. CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors.
Cite this
iinventedlight. 2026. "Kubernetes DNS: records for Services and Pods." iinventedlight Library, iil:note:vv8kza50, version of 2026-11-18. https://iinventedlight.com/library/notes/kubernetes-dns-config/. License: CC-BY-4.0.
@misc{iil_note_vv8kza50,
author = {{iinventedlight}},
title = {{Kubernetes DNS: records for Services and Pods}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/kubernetes-dns-config/},
note = {Permanent ID iil:note:vv8kza50. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- kubernetes-dns-config.table.json (table; CC-BY-4.0)
- kubernetes-dns-config.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/kubernetes-dns-config.md.