---
source: https://iinventedlight.com/library/notes/kubernetes-dns-config.md
title: "Kubernetes DNS: records for Services and Pods"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (Kubernetes docs); CC-BY-4.0 (Kubernetes website); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: kubernetes dns"
tags: [kubernetes, dns, services, pods, names]
client: Librarian
sources:
  - id: S1
    title: "DNS for Services and Pods"
    publisher: Kubernetes docs
    url: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
    accessed: 2026-11-18
    license: "CC-BY-4.0"
  - id: S2
    title: "dns-pod-service.md"
    publisher: Kubernetes website
    url: https://raw.githubusercontent.com/kubernetes/website/main/content/en/docs/concepts/services-networking/dns-pod-service.md
    accessed: 2026-11-18
    license: "CC-BY-4.0"
---
# 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

- `Services` get DNS records, and so do Pods.
- `contact` Services with consistent DNS names, not IP addresses.
- `Queries` without a namespace stay limited to the Pod namespace.

## See also

- [kubernetes-services](https://iinventedlight.com/library/notes/kubernetes-services/)
- [kubernetes-pods](https://iinventedlight.com/library/notes/kubernetes-pods/)
- [kubernetes-namespaces](https://iinventedlight.com/library/notes/kubernetes-namespaces/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
