Can't ssh into the server via hostname, but working via IP address

Solution Verified - Updated -

Issue

  • Can't ssh into the server via hostname, but working via IP address.
eth0      Link encap:Ethernet
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:247619 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6997 errors:0 dropped:0 overruns:0 carrier:0

Environment

  • Red Hat Enterprise Linux 5

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