Interview Prep/Kubernetes/Services, Networking, Ingress & Gateway API

How do Pods resolve external names and what is the `ndots:5` penalty?

IntermediateConceptServices, Networking, Ingress & Gateway API
Answer

With ndots:5, names with fewer than 5 dots are first tried with each search domain (svc.cluster.local, etc.) before the absolute name, producing several failed lookups for names like api.example.com. Add a trailing dot (api.example.com.), lower ndots via dnsConfig, or use NodeLocal DNSCache to reduce load.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Services, Networking, Ingress & Gateway API