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!
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!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
Obviously DNS is the preferred method.
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.
So a
nslookup IP
of the Server shows the correct hostname.
ASKER
Thank You All!
I just created the Host Record in Forward and Reverse Lookup Zone of DNS, it worked.
I just created the Host Record in Forward and Reverse Lookup Zone of DNS, it worked.
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?