Reputation: 71
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
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.
Then select Google and Google 2 from the settings.
Source: https://blog.silocitylabs.com/post/2018/03/02/changing-dns-settings-for-android-development/
Upvotes: 1