Re: [android-porting] unable to configure DNS/resolver on USB0

2017-01-13 Thread Di Fi
ip route add default via USB_GATEWAY table 10 ip rule add from all table 10 I tested on 6 and 7.1 version пятница, 16 января 2015 г., 2:44:11 UTC+3 пользователь mpquser написал: > > never mind, got it to work using below cmd > ndc resolver setnetdns eth0 localhost IP1 IP2 > > On Wednesday,

Re: [android-porting] unable to configure DNS/resolver on USB0

2015-01-15 Thread mpquser
never mind, got it to work using below cmd ndc resolver setnetdns eth0 localhost IP1 IP2 On Wednesday, January 14, 2015 at 5:00:01 PM UTC-8, mpquser mpquser wrote: I am facing a similar problem with Android 5.0 With KitKat, I used the following command for DNS: ndc resolver setifdns eth0

Re: [android-porting] unable to configure DNS/resolver on USB0

2015-01-14 Thread mpquser mpquser
I am facing a similar problem with Android 5.0 With KitKat, I used the following command for DNS: ndc resolver setifdns eth0 localhost IP1 IP2 This command does not work with Android 5.0 I was not able to find out the solution online. Can someone please help me with this? Regards, gi On Monday,

Re: [android-porting] unable to configure DNS/resolver on USB0

2014-12-01 Thread danding7788
HI, Allen I have tried on Android 4.4 device, don't need to update the Regex, it work. And on Andorid 5.0, seems the problem is that framework didn't use the usb0 as default interface, and it think it didn't connect to network. but ping yahoo.com is work in shell. So I think we should set the

Re: [android-porting] unable to configure DNS/resolver on USB0

2014-12-01 Thread Irfanhalif
Sent from my Sony Xperia™ smartphone danding7...@gmail.com wrote: HI, Allen I have tried on Android 4.4 device, don't need to update the Regex, it work. And on Andorid 5.0, seems the problem is that framework didn't use the usb0 as default interface, and it think it didn't connect to

Re: [android-porting] unable to configure DNS/resolver on USB0

2014-11-30 Thread Allen Curtis
Are you building your own AOSP? Try listing usb as a wired ethernet device name. Checkout the file: ./frameworks/base/core/res/res/values/config.xml around line 221 !-- Regex of wired ethernet ifaces -- !-- string translatable=false name=config_ethernet_iface_regexeth\\d/string --

Re: [android-porting] unable to configure DNS/resolver on USB0

2014-11-30 Thread Allen Curtis
I forgot to mention, the information provided was for JB. LP probably has similar configuration files. On Thursday, November 27, 2014 9:43:45 AM UTC-8, dandi...@gmail.com wrote: HI, Robert resolver setdefaultif iface has been removed on Android 5.0, how could we make it now. with seting

Re: [android-porting] unable to configure DNS/resolver on USB0

2014-11-27 Thread danding7788
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

Re: [android-porting] unable to configure DNS/resolver on USB0

2014-11-27 Thread danding7788
HI, Robert But for Android 5.0, the command for resolver is changed. https://android.googlesource.com/platform/system/netd/+/35c77e3%5E!/ 1. set dns: resolver setnetdns netId domains dns1 dns2 ... 2. but setdefaultif has been deleted, how could we set the default interface in Android 5.0

Re: [android-porting] unable to configure DNS/resolver on USB0

2014-08-12 Thread Allen Curtis
Hello Robert, Yesterday I started going down the dhcpcd.conf route. Created a dhcpcd.conf interface usb0 static ip_address=192.168.1.2/24 static routers=192.168.1.254 static domain_name_servers=10.10.17.117 10.10.19.117 I noticed from logcat that init was looking for a dhcpcd_usb service. I am

[android-porting] unable to configure DNS/resolver on USB0

2014-07-16 Thread Allen Curtis
Hello, I am porting Android 4.3 to a device that does not have WiFi or a traditional Ethernet interface. We are using a Gadget CDC USB ethernet interface. Getting general IP communications working was easy enough. I can ping using an IP address. It even works correctly with a gateway. The

Re: [android-porting] unable to configure DNS/resolver on USB0

2014-07-16 Thread 'Robert Greenwalt' via android-porting
the ndc commands are required. static/dynamic ip doesn't really affect this and the setprop stuff is ignored. Are you able to ping the dns servers from the device? I believe the google 8.8.8.8 servers are pingable, so you could use them for this test. Once you find you can reach the servers,

Re: [android-porting] unable to configure DNS/resolver on USB0

2014-07-16 Thread Allen Curtis
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

Re: [android-porting] unable to configure DNS/resolver on USB0

2014-07-16 Thread 'Robert Greenwalt' via android-porting
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 ajcur...@ac2enterprises.com wrote: Hello Robert, I can ping the DNS server but nslookup fails. This is what I get. (Note: eth0 is actually usb0)

Re: [android-porting] unable to configure DNS/resolver on USB0

2014-07-16 Thread Allen Curtis
Interesting... 1. ping yahoo.com - WORKS! 2. busybox nslookup yahoo.com - does not work, same results as before Is there another utility for testing DNS resolution? Thanks! On Jul 16, 2014, at 10:56 AM, Robert Greenwalt rgreenw...@google.com wrote: you also need to set eth0 as your default

Re: [android-porting] unable to configure DNS/resolver on USB0

2014-07-16 Thread 'Robert Greenwalt' via android-porting
Java's InetAddress.getByName()? I'll file a bug to investigate nslookup in busybox. On Wed, Jul 16, 2014 at 11:58 AM, Allen Curtis ajcur...@ac2enterprises.com wrote: Interesting… 1. ping yahoo.com - WORKS! 2. busybox nslookup yahoo.com - does not work, same results as before Is there

Re: [android-porting] unable to configure DNS/resolver on USB0

2014-07-16 Thread Allen Curtis
Robert, Actually it appears that anything in busybox that uses DNS is broken. busybox ping does not work either. Thanks for the help! We are moving again. Allen -- -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting ---

Re: [android-porting] unable to configure DNS/resolver on USB0

2014-07-16 Thread 'Robert Greenwalt' via android-porting
It's almost certainly using linux conventions (resolv.conf) that android has moved away from and can't find out the dns servers. On Wed, Jul 16, 2014 at 2:16 PM, Allen Curtis ajcur...@ac2enterprises.com wrote: Robert, Actually it appears that anything in busybox that uses DNS is broken.