Bird
0
0

Inside a pod, you run nslookup kubernetes.default.svc.cluster.local. What is the expected result?

medium📝 Command Output Q13 of 15
Kubernetes - Networking
Inside a pod, you run nslookup kubernetes.default.svc.cluster.local. What is the expected result?
AAn IP address of the Kubernetes API service
BAn error saying domain not found
CThe pod's own IP address
DThe IP address of the CoreDNS pod
Step-by-Step Solution
Solution:
  1. Step 1: Understand the DNS query

    The domain 'kubernetes.default.svc.cluster.local' is the default Kubernetes API service DNS name inside the cluster.
  2. Step 2: Determine expected DNS resolution

    CoreDNS resolves this to the IP address of the Kubernetes API service, not the pod or CoreDNS pod IP.
  3. Final Answer:

    An IP address of the Kubernetes API service -> Option A
  4. Quick Check:

    Default service DNS resolves to API server IP [OK]
Quick Trick: Default service DNS resolves to API server IP [OK]
Common Mistakes:
  • Expecting pod IP instead of service IP
  • Assuming CoreDNS pod IP is returned
  • Thinking query fails inside pod

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes