private static InetAddress
addrFromRecord(String name, Record r) throws UnknownHostException {
	InetAddress addr;
	if (r instanceof ARecord) {
		addr = ((ARecord)r).getAddress();
	} else {
		addr = ((AAAARecord)r).getAddress();
	}
	return InetAddress.getByAddress(name, addr.getAddress());
}
Converts an int array containing an IPv4 address into a dotted quad string.
@param addr The array
@return The string representation
src/main/java/core/org/xbill/DNS/Address.java