 // An application to find out the address of any named
 // computer - Derek Molloy.

 import java.net.*;

 public class WhoIs
 {
    public static void main(String[] args)
    {
    	if(args.length != 1)
    	{
    	  System.err.println("Usage: WhoIs [Name]");
    	  System.exit(0);
	}
    	try{
    	  InetAddress a = InetAddress.getByName(args[0]);
   	  System.out.println(a.toString());
    	}
    	catch(UnknownHostException e)
    	{
    	  System.out.println("Unknown Host Exception!");
    	}
    }
 }
