A DNS server translates service names into network addresses. In Kubernetes, pods typically use an internal DNS server so applications can reach Services by name instead of hard-coding cluster IP addresses. section 11.1.3
Kubernetes DNS name resolution supports several practical forms:
- Use the Service name, such as http://quiz, when the Service is in the same namespace. section 11.1.3
- Append the namespace for cross-namespace access, such as http://quiz.kiada. section 11.1.3
- Use longer names such as quiz.kiada.svc or quiz.kiada.svc.cluster.local; cluster.local is the default suffix but can be changed. section 11.1.3
Calling Services by name
A pod can configure an application with QUOTE_URL=http://quote/quote and QUIZ_URL=http://quiz. The application then connects through Kubernetes Services while DNS resolves those names to Service cluster IP addresses. section 11.1.3

