You are troubleshooting DNS resolution from within a pod. You exec into the pod and run 'nslookup kubernetes.default.svc.cluster.local'. The command fails with 'connection timed out; no servers could be reached'. However, 'kubectl get svc -n kube-system' shows the kube-dns service with a ClusterIP. What is the MOST likely cause?
If CoreDNS pods are down, the DNS service has no endpoints, causing connection timeouts. Check with 'kubectl get pods -n kube-system'.
Why this answer
Option A is correct. The failure to reach any DNS server suggests that the CoreDNS pod(s) may not be running or are not accessible. Option B would cause a different error (NXDOMAIN).
Option C would not cause a timeout; the pod would still be able to reach the DNS server but get no answer. Option D is a connectivity issue to the ClusterIP, but the timeout suggests the DNS server is not reachable, which points to the pods not running.