title: InetAddress.getLocalHost() slow to run (30+ seconds)
body: <p>With the following code:</p>
  
  <pre><code>try {
    System.out.println(new Date());
    InetAddress hostName = InetAddress.getLocalHost();
    System.out.println(new Date());
  } catch (UnknownHostException e) {
    e.printStackTrace();
  }
  </code></pre>
  
  <p>I get this output:</p>
  
  <pre><code>Thu Oct 22 20:58:22 BST 2015
  Thu Oct 22 20:58:52 BST 2015
  </code></pre>
  
  <p>In other words 30 seconds to execute.  Machine is 2015 Macbook Pro with Java 1.8.0_60.</p>
  
  <p>Why does this take so long? </p>