I am trying to test inter-pod communication without expose as service. I have read that a pod does have FQDN in kubedns. kubernetes doc
Its default should be (A Record)
metadata_name.namespace.svc.cluster.local
or
hostname.subdomain.namespace.svc.cluster.local
But I tried both with curl and nslookup. All failed. The service is healthy, I could curl it with pod IP (172.17.0.5)
curl: (6) could not resolve host
nslookup: can't resolve '(null)': Name does not resolved
What am I missing?