title: Perform a DNS lookup to resolve a hostname to an IP address using JavaScript
body: <p>Is it possible to resolve a hostname using Javascript?</p>
  
  <p>Here would be hypothetical code:</p>
  
  <pre><code>var hostname = "www.yahoo.com";
  var ipAddress = DnsLookup(hostname);
  console.log(ipAddress);
  </code></pre>
  
  <p>I am looking for that magic <code>DnsLookup()</code> function. :-)</p>