public Name []
getAliases() {
	checkDone();
	if (aliases == null)
		return noAliases;
	return (Name []) aliases.toArray(new Name[aliases.size()]);
}
Returns all known aliases for this name.  Whenever a CNAME/DNAME is
followed, an alias is added to this array.  The last element in this
array will be the owner name for records in the answer, if there are any.
@return The aliases.
@throws IllegalStateException The lookup has not completed.
src/main/java/core/org/xbill/DNS/Lookup.java