import java.net.*;public class GetAllIP { public static void main(String [] args) throws Exception { InetAddress[] addr = InetAddress.getAllByName("www.rntsoft.com"); for (int i=0;i System.out.println(addr[i]); } }