public static void setDnsCache(String host, String... ips) {
        try {
            InetAddressCacheUtil.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.toString());
            throw new DnsCacheManipulatorException(message, e);
        }
    }
public static void setDnsCache ( String host , String ... ips ) { try { InetAddressCacheUtil . 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 . toString ( ) ) ; throw new DnsCacheManipulatorException ( message , e ) ; } }
Set a <b>never expired</b> dns cache entry

@param host host
@param ips  ips
@throws DnsCacheManipulatorException Operation fail
@see DnsCacheManipulator#setDnsCache(long, java.lang.String, java.lang.String...)