Hostname Resolution Fails for Non-root user, Getting "Name Or Service Not Known" or "Unknown host"
(Doc ID 2586219.1)
Last updated on SEPTEMBER 10, 2019
Applies to:Oracle Cloud Infrastructure - Version N/A and later
Linux OS - Version Oracle Linux 6.0 and later
Information in this document applies to any platform.
When attempting to telnet to a host from a non-root user it fails. Users are able to connect properly using ip address.
The following error occurs.
Below error appears for non-root users
$ telnet <hostname> 22
telnet: <hostname>: Name or service not known
<hostname>: Unknown host
Working fine with root user:
# telnet hostname 22
Connected to <hostname>.
Escape character is '^]'.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document