title: java.net.UnknownHostException: Unable to resolve host [LOCAL]
body: <p>I use the <code>INTERNET</code> uses-permission in the manifest file.</p>
  
  <p>If I type <code>URL url = new URL('http://www.example.com/page')</code> (remote server) it will work.
  But if I type <code>URL url = new URL('http://example.local/page')</code> (local server) it will return the error </p>
  
  <pre><code>java.net.UnknownHostException: Unable to resolve host "example.local": No address associated with hostname
  </code></pre>
  
  <p>Now in <code>%WINDIR%/System32/drivers/etc/hosts</code> I wrote this entry :</p>
  
  <pre><code>10.101.0.179  example.local
  </code></pre>
  
  <p>I can't use <code>new URL('http://10.101.0.179/page')</code> because example.local is a virtualHost in my apache configuration.</p>
  
  <p>Can't my AVD looks into the <em>hosts</em> file ? what should I do to tell android to fetch the ip <code>10.101.0.179</code> but still send a proper information to apache and tell it to serve the virtual host <code>example.local</code> ?</p>