On Wed, Mar 25, 2009 at 10:42 AM, lianwei <lianwei.w...@gmail.com> wrote:
> > No, I check it with nslookup, and found that the DNS server can not > return a IP address for the external network. So this is the root > cause, but how to make it worked in Android Emulator? Do I need to > find a available DNS server, or some other settings? > Yes, you need to pass the address of a second DNS server, as in "-dns-server address1,address2" > -Lianwei > > On Mar 25, 5:27 pm, David Turner <di...@android.com> wrote: > > Are you sure the DNS server you use is capable of returning IP addresses > for > > non-local domains ? > > > > On Wed, Mar 25, 2009 at 8:53 AM, lianwei <lianwei.w...@gmail.com> wrote: > > > > > Hi all, > > > > > I can not access the external network because of DNS problem, below is > > > my steps: > > > > > 1. Setup DNS > > > ./adb shell setprop net.dns1 xx.xx.xx.xx > > > > > I can successful access the internal network withou setting the > > > http_proxy, such as my.mycomany.com > > > > > 2. Setup proxy > > > Setup the http_proxy environment variable on the host, and setup the > > > dns server in Android. > > > > > Access the external network in browser, such aswww.google.com. It > > > report "Web page not available", the log of logcat say that: > > > I/InetAddress( 187): Unknown hostwww.google.com, throwing > > > UnknownHostException > > > E/browser ( 187): onReceivedError code:-2 The URL could not be > > > found. > > > > > Setting the http_proxy in "sqlite3 /data/data/ > > > com.android.providers.settings/databases/settings.db" also does not > > > work. > > > > > I guess it is the dns issue. But strange that the DNS can work for > > > internal network, but can not work for external network. > > > > > Does anyone know how to fix this issue? > > > > > Thanks, > > > Lianwei > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---