Link to home
Start Free TrialLog in
Avatar of Techie solution
Techie solution

asked on

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!
Avatar of arnold
arnold
Flag of United States of America image

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?
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of Member_2_406981
Member_2_406981

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.
Avatar of Techie solution

ASKER

Thank You All!

I just created the Host Record in Forward and Reverse Lookup Zone of DNS, it worked.