public static InetAddress
getByName(String name) throws UnknownHostException {
	try {
		return getByAddress(name);
	} catch (UnknownHostException e) {
		Record [] records = lookupHostName(name, false);
		return addrFromRecord(name, records[0]);
	}
}
Determines the IP address of a host
@param name The hostname to look up
@return The first matching IP address
@exception UnknownHostException The hostname does not have any addresses
src/main/java/core/org/xbill/DNS/Address.java