@@ -0,0 +1,521 @@
+package com.ctrip.hermes.core.utils;%0A%0Aimport java.net.InetAddress;%0Aimport java.net.UnknownHostException;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Apublic class DNSUtil %7B%0A%0A%09public static List%3CString%3E resolve(String domainName) throws UnknownHostException %7B%0A%09%09List%3CString%3E result = new ArrayList%3CString%3E();%0A%0A%09%09InetAddress%5B%5D addresses = InetAddress.getAllByName(domainName);%0A%09%09if (addresses != null) %7B%0A%09%09%09for (InetAddress addr : addresses) %7B%0A%09%09%09%09result.add(addr.getHostAddress());%0A%09%09%09%7D%0A%09%09%7D%0A%0A%09%09return result;%0A%09%7D%0A%0A%7D%0A

add dns util