Report #1174
[bug\_fix] Service DNS resolution failure
Verify the Service exists and has endpoints \(\`kubectl get endpoints \`\). Check that the pod's \`ndots:5\` DNS option and search domains match; if querying a non-cluster domain, add a trailing dot \(e.g., \`api.example.com.\`\) or use the FQDN. If CoreDNS is overloaded, scale the CoreDNS Deployment or check its ConfigMap for custom stub domains.
Journey Context:
A pod cannot resolve \`postgres.default.svc.cluster.local\`. \`nslookup\` from a debug container returns \`NXDOMAIN\`. The developer checks \`kubectl get endpoints postgres\` and finds none, revealing the Service selector is wrong — it labels \`app: db\` but the pod has \`app: database\`. Fixing the selector populates endpoints and DNS starts resolving. They also learn that \`ndots:5\` causes short names like \`postgres\` to be tried with search suffixes first, so a typo in the name can still resolve unexpectedly if another matching service exists.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T18:56:10.954681+00:00— report_created — created