title: Java InetAddress failed
body: <p>I am trying to check if some host is reachable using the "isReachable" method.</p>
  
  <pre><code>line 113: oaiBaseURL = "http://www.cnn.com";//////////////////////////////////////
  line 114: boolean res = InetAddress.getByName(oaiBaseURL).isReachable(10000);
  line 115: System.out.println("------reachable:"+res);
  </code></pre>
  
  <p>and get the following error message (in eclipse):</p>
  
  <pre><code>java.net.UnknownHostException: http://www.cnn.com
      at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
      at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)
      at java.net.InetAddress.getAddressFromNameService(Unknown Source)
      at java.net.InetAddress.getAllByName0(Unknown Source)
      at java.net.InetAddress.getAllByName(Unknown Source)
      at java.net.InetAddress.getAllByName(Unknown Source)
      at java.net.InetAddress.getByName(Unknown Source)
      at com.irWizard.web.validator.WizardValidator.validateForm(WizardValidator.java:114)
  </code></pre>
  
  <p>Does anyone understand what might be the reason for this error?</p>
  
  <p>Thanks in advance!</p>