Check the Pod DNS name and resolver before changing CoreDNS
Kubernetes service-name resolution depends on the querying Pod namespace. Check the actual query and resolver settings, then follow the documented service and EndpointSlice diagnostics.
Read the guide