Why does telnet failes with message "localhost Name or service not known"

Solution Verified - Updated -

Issue

  • why does telnet failes with message "localhost Name or service not known"
# telnet 0
Trying 0.0.0.0...
Connected to 0 (0.0.0.0).
Escape character is '^]'.
getaddrinfo: localhost Name or service not known
Connection closed by foreign host.

Environment

  • Red Hat Enterprise Linux 5x
  • telnet-server

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content