kubectl exec -it coredns-abc123 -- nslookup kubernetes.default. What is the expected output?The CoreDNS pod uses the cluster DNS IP (usually 10.96.0.10) to resolve internal Kubernetes service names like kubernetes.default. The response includes the full DNS name and the cluster IP of the Kubernetes API server.
The correct CoreDNS forwarding block uses the 'forward' plugin with the domain '.' to forward all external DNS queries to 8.8.8.8. The 'proxy' plugin is deprecated. The IP must be specified after the domain.
myservice.default.svc.cluster.local. Which is the most likely cause?If CoreDNS pods are not running or crashing, DNS resolution inside the cluster fails for internal service names. External DNS issues or service endpoints do not affect CoreDNS resolving service names.
First edit the ConfigMap to update CoreDNS settings. Then restart the CoreDNS deployment to apply changes. After pods restart and become ready, test DNS resolution inside a pod to confirm success.
Running multiple CoreDNS replicas distributed across nodes with PodDisruptionBudgets ensures DNS service remains available during node failures or upgrades. Single pods or disabling CoreDNS reduce availability. Resource limits prevent resource exhaustion.