Prateek Kohli
Prateek Kohli

Reputation: 71

Configuring the emulator DNS settings

I am struggling to get the Android emulator to use a custom DNS server, which is running on localhost (127.0.0.1).

As of now, I have tried various approaches trying to convince the emulator to use my DNS server, so far without success. In the end, it always boils down to the following error message:

net::ERR_NAME_NOT_RESOLVED

I tried configuring the Emulator's DNS Settings from Emulator guide but still not luck http://developer.android.com/guide/developing/tools/emulator.html#dns

Upvotes: 2

Views: 3253

Answers (1)

ldrrp
ldrrp

Reputation: 704

You may be able to give this guide a go, I use this for my dev setup and have modes to test local dns servers.

  • Download (Daedalus) and open the application.
  • Click on the menu then click “Servers”

menu

  • Click the add button and add the two google servers “8.8.8.8” and “8.8.4.4”, You can substitute these for your preferred DNS provider as well.

dns settings

Upvotes: 1

Related Questions