"getaddrinfo: No address associated with hostname" when connecting to loopback
Issue
- Application returns error
getaddrinfo: No address associated with hostname
when connecting tolocalhost
:
$ nc -6 localhost 12345
nc: getaddrinfo: No address associated with hostname
- Getting local host error even when run with user account or root
Environment
- Red Hat Enterprise Linux 6
- Network connection to
localhost
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.