Ionic Emulate with DNS on Android


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.


My current /etc/resolv.conf

search mydomain

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