title: Does InetAddress.getLocalHost().getHostAddress(); involve DNS-Server?
body: <p>With the following code</p>
  
  <pre><code>InetAddress.getLocalHost().getHostAddress();
  </code></pre>
  
  <p>it is possible to get the hosts address. But how does the JVM find that out?</p>
  
  <p>The Java API only tells you that it returns it (<a href="http://download.oracle.com/javase/1.4.2/docs/api/java/net/InetAddress.html#getHostAddress%28%29" rel="nofollow">API Reference</a>), but is there a DNS-Server involved, and if yes, when is it called?</p>
  
  <p>And if it is only called once how is the server name saved locally?</p>