ping not resolving names

Bruce Marshall bmarsh at bmarsh.com
Thu Jul 26 22:35:11 UTC 2007


On Thursday 26 July 2007, Felipe Figueiredo wrote:
> Hello,
>
> I am having trouble pinging hostnames. For some reason, ping is not
> resolving hostnames
>
>
> philsf at philsf-laptop:~$ ping www.google.com
> ping: unknown host www.google.com
>
> OTOH, network is fully operational, and pinging the ip works as expected
>
>
>
> philsf at philsf-laptop:~$ host www.google.com
> www.google.com is an alias for www.l.google.com.
> www.l.google.com has address 209.85.165.103
> www.l.google.com has address 209.85.165.99
> www.l.google.com has address 209.85.165.104
> www.l.google.com has address 209.85.165.147
> philsf at philsf-laptop:~$ ping -c1 209.85.165.103
> PING 209.85.165.103 (209.85.165.103) 56(84) bytes of data.
> 64 bytes from 209.85.165.103: icmp_seq=1 ttl=245 time=165 ms
>
> --- 209.85.165.103 ping statistics ---
> 1 packets transmitted, 1 received, 0% packet loss, time 0ms
> rtt min/avg/max/mdev = 165.888/165.888/165.888/0.000 ms
>
> I don't know what's happening, but here's some more information that might
> be useful if someone is able to help. Any ideas?
>
>
> philsf at philsf-laptop:~$ ifconfig eth1
> eth1      Link encap:Ethernet  HWaddr 00:14:BF:26:87:DE
>           inet addr:192.168.1.11  Bcast:192.168.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:6858 errors:0 dropped:181 overruns:0 frame:0
>           TX packets:17995 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:2527288 (2.4 MiB)  TX bytes:1116500 (1.0 MiB)
>           Interrupt:11 Base address:0x8000
>
> philsf at philsf-laptop:~$ route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0       
> 0 eth1 169.254.0.0     0.0.0.0         255.255.0.0     U     0      0      
>  0 eth0 169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0     
>   0 eth1 0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0    
>    0 eth1 0.0.0.0         0.0.0.0         0.0.0.0         U     1000   0   
>     0 eth0

What is in your  /etc/resolv.conf   file?




More information about the ubuntu-users mailing list