HI, Robert

resolver setdefaultif <iface> has been removed on Android 5.0, how could we 
make it now.

with seting the IP for USB0 and "resolver setnetdns <netId> <domains> 
<dns1> <dns2> ..."
I could ping yahoo.com in shell, but could not surf the internet in 
Broswer/Apps, 
I also tried "network default set usb0", but not work too.
Anything I missed?

On Thursday, July 17, 2014 1:56:40 AM UTC+8, Robert Greenwalt wrote:
>
> you also need to set eth0 as your default for dns via
> resolver setdefaultif <iface>
>
>
> On Wed, Jul 16, 2014 at 10:37 AM, Allen Curtis <ajcu...@ac2enterprises.com 
> <javascript:>> wrote:
>
>> Hello Robert,
>>
>> I can ping the DNS server but nslookup fails. This is what I get. (Note: 
>> eth0 is actually usb0)
>>
>> root@sabresd_6dq:/ # ndc resolver setifdns eth0  192.168.10.40 
>> 192.168.10.45
>> 200 0 Resolver command succeeded
>> root@sabresd_6dq:/ # busybox nslookup yahoo.com
>> Server:    0.0.0.0
>> Address 1: 0.0.0.0
>>
>> nslookup: can't resolve 'yahoo.com'
>> 1|root@sabresd_6dq:/ # ifconfig
>> root@sabresd_6dq:/ # ifconfig eth0
>> eth0: ip 192.168.1.2 mask 255.255.255.0 flags [up broadcast running 
>> multicast]
>> root@sabresd_6dq:/ # ping 192.168.10.40
>> PING 192.168.10.40 (192.168.10.40) 56(84) bytes of data.
>> 64 bytes from 192.168.10.40: icmp_seq=1 ttl=126 time=12.4 ms
>> 64 bytes from 192.168.10.40: icmp_seq=2 ttl=126 time=1.61 ms
>> ^C
>> --- 192.168.10.40 ping statistics ---
>> 2 packets transmitted, 2 received, 0% packet loss, time 1001ms
>> rtt min/avg/max/mdev = 1.618/7.044/12.470/5.426 ms
>> root@sabresd_6dq:/ # ping 192.168.10.45
>> PING 192.168.10.45 (192.168.10.45) 56(84) bytes of data.
>> 64 bytes from 192.168.10.45: icmp_seq=1 ttl=126 time=10.5 ms
>> 64 bytes from 192.168.10.45: icmp_seq=2 ttl=126 time=9.54 ms
>>
>>
>>
>

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to