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.
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)
Thanks everyone.
Hailong, your command worked like a charm. DNS stuff is working now on
Android.
Why statically linked busybox doesn't work is separate issue which
I'll tackle some other day.
Thanks again.
On Aug 12, 10:14 pm, Nikhil Gautam wrote:
> Thanks, I was doing "setprop net.usb0.dns1
Thanks everyone.
Hailong, your command worked like a charm. DNS stuff is working now on
Android.
Why statically linked busybox doesn't work is separate issue which
I'll tackle some other day.
Thanks again.
On Aug 12, 10:14 pm, Nikhil Gautam wrote:
> Thanks, I was doing "setprop net.usb0.dns1
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
>
> hi!
> dns resolving for android system does not use /etc/resolv.conf.it
> do the task internal.
> you might set it using the following comman
I think it's handled by libc. From busybox, I see the getaddrinfo() call
which returns an error. I think internally the gethostbyname() function
inside libc fails.
On Wed, Aug 12, 2009 at 10:05 PM, Jerome Duval wrote:
> Maybe I'm missing something, but I don't see you describing your DNS
> clien
Maybe I'm missing something, but I don't see you describing your DNS
client anywhere. Does the bionic libc do that?
Nikhil Gautam wrote:
Thanks Csillag,
I did tried busybox and it produces the similar error. The only
difference is with busybox, I can't even ping "localhost" which is
define
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 wrote:
> I am trying to get the ping working in Android running on ARM.
>
> Ping to IP a
Thanks Csillag,
I did tried busybox and it produces the similar error. The only difference
is with busybox, I can't even ping "localhost" which is defined in
/etc/hosts. Ping to IP address works fine.
Note: I am building busybox statically linked.
Do you know how does android applications resolve
On Wed, Aug 12, 2009 at 11:58:11AM -0700, jolly1312 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"
...
> Also /etc/resolv.conf is also there:
> echo nameserver 4.2.2.
Following is the strace output:
#strace ping -c 1 www.yahoo.com
execve("/system/bin/ping", ["ping", "-c", "1", "www.yahoo.com"], [/*
10 vars */]) = 0
getpid()= 811
syscall_983045(0xb00189fc, 0x85b4, 0xb0010448, 0x10, 0x4, 0xbe85cd64
11 matches
Mail list logo