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.
sidharthBhargavaAsked:
Who is Participating?
 
eagerCommented:
You can also add the machine name and IP address to Window's host file.  This is in C:\WINDOWS\system32\drivers\etc\hosts.
0
 
TintinCommented:
What machine are you pinging from?

Is the hostname in DNS?
0
 
sidharthBhargavaAuthor Commented:
I am pinging it  from a windows machine. I didnt understand ur second question please explain
0
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.

 
TintinCommented:
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?
0
 
fosiul01Commented:
@ 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]

http://www.centos.org/docs/2/rhl-rg-en-7.2/s1-bind-configuration.html


0
 
sidharthBhargavaAuthor Commented:
Thx
0
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.