Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning: no dns servers found

I want to access internet in my android emulator for which i have manually entered dns setting as mentioned in the following link How to set Internet options for Android emulator?

but still when i start the emulator it show the warning that no dns server found and hence there is no internet connectivity in my android emulator. How can i solve this problem.

like image 217
Tapan Desai Avatar asked Feb 19 '23 07:02

Tapan Desai


2 Answers

In Eclipse:

Window>Preferences>Android>Launch

Default emulator options: -dns-server 8.8.8.8,8.8.4.4

like image 75
Tapan Desai Avatar answered Mar 04 '23 12:03

Tapan Desai


I tried the above method, but had no effect unless setting a name-server on the host OS (Linux):

nano /etc/network/interfaces 

auto eth0
dns-nameservers 8.8.8.8 8.8.4.4
like image 23
Martin Zeitler Avatar answered Mar 04 '23 12:03

Martin Zeitler