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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.