• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 273
  • Last Modified:

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 solution
Techie solution
1 Solution
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?
Dave BaldwinFixer 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?
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.
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.
Techie solutionVMware SpecialistAuthor Commented:
Thank You All!

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

Join & Write a Comment

Featured Post

Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

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