DNS does not resolve FQDN

Latest response

OCP 4.5.7
If a pod uses FQDN resolve fails.
If the same pod just uses hostname it works.
If I change "options ndots:5" to "ndots:1" in /etc/resolv.conf in the pod, the FQDN is resolved.
The hostname/FQDN is another pod running in same namespace.
Example:
oc exec -it podname -- bash
$ curl -X GET "https://username:password@couchdb.cpd.svc.cluster.local"
this fails, while
$ curl -X GET "https://username:password@couchdb"
works

Responses