Description of problem:
This is concern from customer. They found that from WebConsole, The service hostname shows a info and says: This address is only resolvable from within the cluster.
However when they $nslookup the hostname such as: <svc>.<project>.svc from node. The DNS will return : <svc>.<project>.svc.cluster.local instead of the one without .cluster.local.
The question is, which is correct that our internal DNS service (skyDNS) can do.
From my test, the resolve can not be directly success and sent to upstream DNS Server. If the upstream return no match then it will auto add the search domain "cluster.local" and then get the correct answer from local DNS.
The customer concern about the info from WebConsole which tells them that "<svc>.<project>.svc" can be resolved inside the cluster and the result doesn't match that.
- The result doesn't match the info provided from webconsole.
- 1. Need to know which kind of name could be resolved. Must contains "cluster.local"?
- 2. Is there any details info about skyDNS ? how to config it ?
- 3. If sky DNS can only resolve the name contains cluster.local, the info from WebConsole may caused some misunderstanding for customer.
This question can be repo in all of OCP version begin from 3.6
Thanks a lot.
`<service>.<namespace>.svc` should resolve from inside a pod as well, but we will update the hostname in the console to use the fully-qualified `.cluster.local`.
check service instance on web console, hostname will be <svc>.<ns>.svc.cluster.local with suffix 'cluster.local'.
OpenShift Web Console:
verified this bug
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.