[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 754
  • Last Modified:

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.
0
sidharthBhargava
Asked:
sidharthBhargava
1 Solution
 
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
 
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
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now