Linux Server not pinging through its hostname

Hi ,

I created a new VM for RHEL 6.4, configured the hostname and Ip address onto the configuration file. Able to ping the IP from inside the server and outside the server but unable to ping server name outside the server but able to do the same within the server.

Please Suggest!
Techie solutionVMware SpecialistAsked:
Who is Participating?
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
Where would a computer outside your server be able to lookup the hostname to get the IP address?  Is it registered in DNS somewhere?
0
 
arnoldCommented:
Your VM is likely feither does not have an external IP (natted by host) connection or has firewall /iptables blocking ICMP packets.
To confirm, double check the VMs network setting to make sure it is not Natted by the host.
Second check whether IPtables is running on this system.
Can the host ping the VM?
0
 
savoneCommented:
You need to either create a forward A record for your server in your networks DNS, or add an entry to a host file on the outside computer.  

Obviously DNS is the preferred method.
0
 
andreasSystem AdminCommented:
I think you didnt setup a dns record for the server. the internal ping for the hostname is working as its using he hostsfile. for outside pings to the name the system needs to be registered at your organisations DNS server.

So a

nslookup IP  
of the Server shows the correct hostname.
0
 
Techie solutionVMware SpecialistAuthor Commented:
Thank You All!

I just created the Host Record in Forward and Reverse Lookup Zone of DNS, it worked.
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.