kubernetes has DNS resolution for service or pod. For example, if I log into a pod, I can access the services or pods via DNS name, like mysvc.default.svc.
But how can I access them by DNS directly from Kubernetes host?
Currently, I have to get the IP address in order to access the service, which is inconvenient.
Thanks!