Thanks, I was doing "setprop net.usb0.dns1 xxx.xxx.xxx.xxx" and it didn't
work.
I'll try removing usb0 and see if it works!

2009/8/12 hailong zeng <hailong.z...@gmail.com>

>
> hi!
>   dns resolving for android system does not use /etc/resolv.conf.it
> do the task internal.
>   you might set it using the following command:"setprop net.dns1
> xxx.xxx.xxx.xxx".
>
> On 8月13日, 上午2时58分, 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 hostwww.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
-~----------~----~----~----~------~----~------~--~---

Reply via email to