Hello,

I also had the same problem and spent an entire day messing with
configurations and sugestions found on Google. No luck at all.
Until I found a solution that seemed ridiculous, but... it worked!

Start the Emulator normally (even from eclipse), and in the GUI go to:
Settings >> Wireless & networks >> Mobile networks >> Access Point
Names

Edit the existing one (just click on it).

Fill the fields for Proxy and Port with the DNS server you want to
use. For example:
Proxy: 194.79.69.129
Port: 3128

Save, and... voilá.

Try it now. It can now resolve DNS names in your application on HTTP
calls.

Hope it helps.



On 24 Jan, 05:01, ajoburg <[email protected]> wrote:
> I've read many postings about problems getting the Android emulator
> DNS to work properly in certain situations. I have a simple app that
> makes an HTTP connection to a server on the Internet. If I use an IP
> address using the latest version of the emulator  it works fine. If I
> use the domain name it throws a java.net.UnknownHostException: Host is
> unresolved: exception. The identical code works fine on any actual
> device.
>
> Has anyone figured out how to fix this situation? I've spent days
> trying everything, from using proxy servers to setting up and running
> a DNS server on my development machine.
>
> This situation/experience is a shame, because the emulator seems like
> such an impressive and well thought out collection of tools for
> developing and testing apps. However, it is currently useless to me.
>
> Is there anyone who can help?
>
> A prior thread on the same issue--appears to be the same situation:
>
> http://groups.google.com/group/android-developers/browse_thread/threa...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to