Linux DNS issue

Hi , I have configured OEL 5.3 server on VMware server,installation went fine, however when i am checking host using configured /etc/hosts i am getting following error let me know where it went wrong .

I had disabled firewall options and SELLinux.

root@oen11g ~]# host oen11g.grid.com 
;; connection timed out; no servers could be reached 

here is /etc/hosts

[root@oen11g ~]# cat /etc/hosts 
# Do not remove the following line, or various programs 
# that require network functionality will fail. 
127.0.0.1 localhost.localdomain localhost 
10.103.10.125 ; oen11g.grid.com oen11g 

I am able to ping

[root@oen11g ~]# ping 10.103.10.125 
PING 10.103.10.125 (10.103.10.125) 56(84) bytes of data. 
64 bytes from 10.103.10.125: icmp_seq=1 ttl=64 time=1.53 ms 
64 bytes from 10.103.10.125: icmp_seq=2 ttl=64 time=0.339 ms 

--- 10.103.10.125 ping statistics --- 
2 packets transmitted, 2 received, 0% packet loss, time 1001ms 
rtt min/avg/max/mdev = 0.339/0.936/1.533/0.597 ms 

[root@oen11g ~]# ping oen11g.grid.com 
PING oen11g.grid.com (10.103.10.125) 56(84) bytes of data. 
64 bytes from oen11g.grid.com (10.103.10.125): icmp_seq=1 ttl=64 time=0.036 ms 
64 bytes from oen11g.grid.com (10.103.10.125): icmp_seq=2 ttl=64 time=0.242 ms 
64 bytes from oen11g.grid.com (10.103.10.125): icmp_seq=3 ttl=64 time=0.234 ms 

--- oen11g.grid.com ping statistics --- 
3 packets transmitted, 3 received, 0% packet loss, time 2001ms 
rtt min/avg/max/mdev = 0.036/0.170/0.242/0.096 ms 

[[root@oen11g ~]# traceroute 10.103.10.125 
traceroute to 10.103.10.125 (10.103.10.125), 30 hops max, 40 byte packets 
1 oen11g.grid.com (10.103.10.125) 0.572 ms 0.026 ms 0.021 ms 

[root@oen11g ~]# dig +trace 10.103.10.125 

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> +trace 10.103.10.125 
;; global options: printcmd 
;; connection timed out; no servers could be reached 
[root@oen11g ~]#

u may have a try by

ping google.com

do u got the answer?
I think u didnt config the /etc/resolv.conf

  1. I don't think that semicolon (:wink: should be there in /etc/hosts
  2. Did you configure your nameservers in /etc/resolv.conf?