1import java.net.InetAddress;
2
3public class GetAllInetAddresses {
4
5 public static void main(String[] argv) {
6 try {
7 InetAddress [] addresses =
8 InetAddress.getAllByName(argv[0]);
9
10 for (int i=0;
11 i < addresses.length;
12 ++i ) {
13 System.out.println(addresses[i]);
14 }
15 }
16 catch (Exception e) {
17 System.out.println(e);
18 }
19 }
20}