public class IP
{
	static public void main(String[] args) throws Exception
	{
		try
		{
			System.out.println("dnsjava finds " + args[0] + " is at " + org.xbill.DNS.Address.getByName(args[0]));
		}
		catch (java.net.UnknownHostException uhe)
		{
			System.err.println("Cannot resolve address for " + args[0] + ": " + uhe.getMessage());
		}

		try
		{
			System.out.println("Java finds " + args[0] + " is at " + java.net.InetAddress.getByName(args[0]));
		}
		catch (java.net.UnknownHostException uhe)
		{
			System.err.println("Cannot resolve address for " + args[0] + ": " + uhe.getMessage());
		}
	}
}
