AbhinavDS / 0xdroid

Automatically exported from code.google.com/p/0xdroid
0 stars 1 forks source link

How to get the DNS for 3G network? #146

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I want to use 3G card in android like Issue80. When I run the pppd script, I 
got the "CONNECT", but didn't surf the internet.   
/ # netcfg
ppp0     UP    10.134.76.60    255.255.255.255 0x000010d1

/ #ping www.sina.com.cn
ping: unknown host www.sina.com.cn

/ #getprop
......
[init.svc.dbus]: [running]
[init.svc.installd]: [running]
[init.svc.keystore]: [running]
[init.svc.ril-daemon]: [running]
[init.svc.ppp]: [stopped]
[ro.radio.noril]: [no]
[ro.radio.use-ppp]: [yes]
[ro.config.nocheckin]: [yes]
[init.svc.adbd]: [running]
[init.svc.bootanim]: [stopped]
[hw.keyboards.0.devname]: [s3c-keypad-rev0000]
[sys.settings_secure_version]: [3]
[dev.bootcomplete]: [1]
[sys.settings_system_version]: [6]
[gsm.version.ril-impl]: [android reference-ril 1.0]
[gsm.sim.operator.numeric]: [46000]
[gsm.sim.operator.alpha]: [CMCC]
[gsm.sim.operator.iso-country]: [cn]
[gsm.sim.state]: [READY]
[gsm.current.phone-type]: [1]
[gsm.operator.alpha]: []
[gsm.operator.numeric]: []
[gsm.operator.iso-country]: []
[gsm.operator.isroaming]: [false]
[net.gprs.http-proxy]: []
[gsm.defaultpdpcontext.active]: [true]
[net.dnschange]: [1]

It didn't get the DNS, I have no idea. How can I to config the params?
Do you have any suggestion? Thanks! 

Original issue reported on code.google.com by huanyufe...@gmail.com on 17 Aug 2010 at 12:27

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I can surf the net now. I added a static DNS, then the network was OK.

Original comment by huanyufe...@gmail.com on 18 Aug 2010 at 5:36

GoogleCodeExporter commented 8 years ago
But How to get the DNS server dynamically?

Original comment by huanyufe...@gmail.com on 18 Aug 2010 at 7:21

GoogleCodeExporter commented 8 years ago
I had resolved this problem after deleted the "ANDROID_CHANGEDS" in the 
create_resolv() function.

Original comment by huanyufe...@gmail.com on 20 Aug 2010 at 9:17

GoogleCodeExporter commented 8 years ago
hi Erin,

Should we integrate yufeng's changes in 0xdroid?

Original comment by jserv.tw@gmail.com on 22 Aug 2010 at 3:41

GoogleCodeExporter commented 8 years ago
Hi there, 
How is your ip-up script? does it set DNS property?
like below:
setprop "net.dns1" "$DNS1"
setprop "net.dns2" "$DNS2"
setprop "net.$NAME.local-ip" "$IPLOCAL"
setprop "net.$NAME.remote-ip" "$IPREMOTE"

I saw your comment#4, you marked "ANDROID_CHANGES" out in create_resolv. I 
guess you create a resolv.conf in /etc/ppp folder, right?

Original comment by erinyueh on 23 Aug 2010 at 5:52

GoogleCodeExporter commented 8 years ago
Erin:
   My ip-up script is at the same as yours. It set the DNS for network. And I didn't create the resolv.conf because of the "ANDROID_CHANGEDS" close this action.
   Thanks! Erin.

Original comment by huanyufe...@gmail.com on 23 Aug 2010 at 6:09

GoogleCodeExporter commented 8 years ago
Hi there, 
mmh... i see. You marked that define out, then it can create resolv.conf 
correctly. 

Original comment by erinyueh on 23 Aug 2010 at 6:30