We help IT Professionals succeed at work.

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

sidharthBhargava
on
Medium Priority
783 Views
Last Modified: 2012-05-06
Not able to ping linux machine(RHEL 5) by its hostname. Its pinging by its IP.
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2007

Commented:
What machine are you pinging from?

Is the hostname in DNS?

Author

Commented:
I am pinging it  from a windows machine. I didnt understand ur second question please explain
CERTIFIED EXPERT
Top Expert 2007

Commented:
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?
Top Expert 2009

Commented:
@ 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


Consultant
Commented:
You can also add the machine name and IP address to Window's host file.  This is in C:\WINDOWS\system32\drivers\etc\hosts.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Thx
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.