Hi! I found one problem in resolv module there : setprop net.dns1 168.95.1.1 setprop net.dns2 168.95.192.1
But ping -c 10 www.google.com failed! >From Win XP nsllookup to check : dns is 168.95.1.1 C:\Documents and Settings\sunnyliu>nslookup www.google.com Server: dns.hinet.net Address: 168.95.1.1 Non-authoritative answer: Name: www.l.google.com Addresses: 72.14.203.105, 72.14.203.103, 72.14.203.104, 72.14.203.99 72.14.203.147, 72.14.203.106 Aliases: www.google.com How do we debug this problem? Thank you at the first! Sunny Liu 2009/8/14 David Turner <di...@android.com> > The Android C library contains a DNS resolver that doesn't use > /etc/resolv.conf or /etc/nsswitch.conf > Instead, to it uses a list of system properties instead: > > net.dns1 -> IP address of first DNS server > net.dns2 -> IP address of second DNS server > ... > > Additionally, the Donut platform (not Cupcake) also supports > > net.dns.search -> space separated domain search suffixes (used e.g. by VPN) > > > On Wed, Aug 12, 2009 at 11:58 AM, jolly1312 <jolly1...@gmail.com> wrote: > >> >> I am trying to get the ping working in Android running on ARM. >> >> Ping to IP addresses works fine but when I ping to name I get >> >> "ping: unknown host www.yahoo.com" >> >> I have already setup the default gateway: >> route add default gw 192.168.0.17 >> >> Also /etc/resolv.conf is also there: >> echo nameserver 4.2.2.2 > /etc/resolv.conf >> >> And ping to nameserver works fine! >> >> Also I have /etc/nsswitch.conf as: >> echo "hosts: files dns" > /etc/nsswitch.conf >> >> If I add entries in /etc/hosts then the ping with name works fine. >> >> Has anyone seen this problem before? >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---