I use this snippet of Java code to lookup an IP Address from the domain name
InetAddress address = InetAddress.getByName("google.com");
It works fine in Windows & Linux but throws
java.net.UnknownHostException in Unix.
nslookup google.com, I am getting "No address information is available" in console.
How can I resolve it ?