Win a copy of Barcodes with iOS this week in the iOS forum or Core Java for the Impatient in the Java 8 forum!
Richard Tookey wrote:The following example works fine for me using Ubuntu 11.04 and 12.10 with JDK 1.7.0_09 .
String addresses =
"bbc.co.uk", "www.coderanch.com", "www.google.com", "microsoft.com"
for (String address : addresses)
InetAddress ipAddress = InetAddress.getByName(address);
System.out.println(address + " " + ipAddress);
You could check the Java bug database but it sounds to me like your network is not configured correctly.
It's working in my Linux machine but in Unix I am getting same error .