Linux 5 machine .not able to ping it by its hostname

Not able to ping linux machine(RHEL 5) by its hostname. Its pinging by its IP.
Who is Participating?
You can also add the machine name and IP address to Window's host file.  This is in C:\WINDOWS\system32\drivers\etc\hosts.
What machine are you pinging from?

Is the hostname in DNS?
sidharthBhargavaAuthor Commented:
I am pinging it  from a windows machine. I didnt understand ur second question please explain
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

To be able to ping the hostname, it either has to be defined in DNS (Domain Name Service) or have a local hosts entry.

Is this a public host or on a local LAN/Intranet?
@ Tintin is right, you need to setup a dns server to ping Internal pc as hosname.

Either you can make linux SErver as Dns server and put all internal pc hostname  in zone file

or make any windows Server as Dns server.

have a look bellow one, for bind setup in linux [ check the zone file]

sidharthBhargavaAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.