in library/src/main/java/com/alibaba/dcm/DnsCacheManipulator.java [41:53]
public static void setDnsCache(String host, String... ips) {
try {
if (isNewInetAddressImpl()) {
InetAddressCacheUtilForNew.setInetAddressCache(host, ips, NEVER_EXPIRATION);
} else {
InetAddressCacheUtilForOld.setInetAddressCache(host, ips, NEVER_EXPIRATION);
}
} catch (Exception e) {
final String message = String.format("Fail to setDnsCache for host %s ip %s, cause: %s",
host, Arrays.toString(ips), e);
throw new DnsCacheManipulatorException(message, e);
}
}