Just a quick one:
+ * Returns array of hosts from the A or AAAA record of the specified domain.
+ public static InetSocketAddress getAorAAAARecords(String domain, int port)
If I understand correctly the method would return all A and AAAA record.
When I first saw the name however I assumed the "or" in the title and
the comment meant that I would receive either A or AAAA records. How about:
getAandAAAARecords(String domain, int port)