Java tutorial
import java.net.InetAddress; public class Main { public static void main(String[] args) throws Exception { InetAddress[] addr = InetAddress.getAllByName(args[0]); for (int i = 0; i < addr.length; i++) System.out.println(addr[i]); } }