Ionic Emulate with DNS on Android


#1

I’m using Mac OS X, with my primary DNS pointed at a local server running dnsmasq to resolve requests to URLs ending in .dev to [my] localhost.

I have no problems with this when using the iOS emulator via Ionic:

ionic emulate ios

However, for some reason the Android emulator cannot access or resolve the the .dev URLs in my application.

As I understood it, the Android emulator takes a copy of /etc/resolv.conf which contains a reference to my DNS server running dnsmasq.

source: http://developer.android.com/tools/devices/emulator.html

My current /etc/resolv.conf

search mydomain
nameserver 192.168.254.15

Any ideas for me to try to get ionic emulate android working with my custom DNS settings?