title: How do I use the host as DNS with Android / ADB?
body: <p>I'm using the Android Debug Bridge (ADB) to connect my unrooted Droid M (Android 4.1.2) to my Mac (Mavericks) via USB and the following ppp connection:</p>
  
  <pre><code>sudo `which adb` ppp "shell:pppd nodetach noauth noipdefault /dev/tty" nodetach noauth noipdefault notty 192.168.0.100:192.168.0.200
  </code></pre>
  
  <p>(source: <a href="http://www.commandlinefu.com/commands/view/10355/creates-a-ppp-link-between-my-ubuntu-development-machine-and-beagleboard-running-android-connected-via-usb" rel="nofollow">commandlinefu.com</a>)</p>
  
  <p>On my Mac, I'm using Vagrant to run a web server stack and the Mac's host files to redirect hostnames like <code>app.myserver.com</code> and <code>api.myserver.com</code> to point to the Vagrant box (which all works fine).</p>
  
  <p>Here's my question: Is there a way I can connect my Droid M to my Mac in a way that uses the Mac as the DNS and thus would properly route the domain names in the Mac's hosts file?</p>
  
  <p>I thought I had this working on another machine about a year ago, but I can't figure out how I did it.</p>
  
  <p>Thanks,
  -Nate</p>