title: How to set the Android emulator DNS server from Android Studio
body: <p>Essentially my issue is that when I run <code>emulator -verbose -avd Nexus_5X_API_19</code> in the command line the emulator starts up with the argument <code>-dns-server = "w,x,y,z"</code> where <code>w,x,y,z</code> are 4 ip addresses for DNS servers. When I run <code>ipconfig /all</code> I only see <code>x,y,z</code> listed as my valid DNS servers in Windows. Because of this odd first DNS server, I am unable to access the internet within the emulator. When I run the emulator with <code>emulator -verbose -avd Nexus_5X_API_19 -dns-server "x,y,z"</code> everything works fine.</p>
  
  <p>But now I want to be able to run my app from within Android Studio 2.2.3 with the corrected DNS servers. So does anyone know how to specify the emulator command line arguments within Android Studio (similar to this answer for the older Eclipse based version: <a href="https://stackoverflow.com/a/4736518/1088659">https://stackoverflow.com/a/4736518/1088659</a>), or how to set the default DNS for the emulator to start with?</p>