library/src/main/java/com/alibaba/dcm/DnsCacheManipulator.java
public static void removeDnsCache(@Nonnull String host) {
        try {
            if (isJdkAtMost8()) {
                InetAddressCacheUtilForJdk8Minus.removeInetAddressCache(host);
            } else {
                InetAddressCacheUtilForJdk9Plus.removeInetAddressCache(host);
            }
        } catch (Exception e) {
            final String message = String.format("Fail to removeDnsCache for host %s, cause: %s", host, e);
            throw new DnsCacheManipulatorException(message, e);
        }
    }
/**
     * Remove dns cache entry, cause lookup dns server for host after.
     *
     * @param host host
     * @throws DnsCacheManipulatorException Operation fail
     * @see DnsCacheManipulator#clearDnsCache
     */
Remove dns cache entry, cause lookup dns server for host after.
Remove dns cache entry cause lookup dns server for host after .
public static void removeDnsCache(@Nonnull String host) {
        try {
            if (isJdkAtMost8()) {
                InetAddressCacheUtilForJdk8Minus.removeInetAddressCache(host);
            } else {
                InetAddressCacheUtilForJdk9Plus.removeInetAddressCache(host);
            }
        } catch (Exception e) {
            final String message = String.format("Fail to removeDnsCache for host %s, cause: %s", host, e);
            throw new DnsCacheManipulatorException(message, e);
        }
    }
public static void removeDnsCache ( @ Nonnull String host ) { try { if ( isJdkAtMost8 ( ) ) { InetAddressCacheUtilForJdk8Minus . removeInetAddressCache ( host ) ; } else { InetAddressCacheUtilForJdk9Plus . removeInetAddressCache ( host ) ; } } catch ( Exception e ) { final String message = String . format ( "Fail to removeDnsCache for host %s, cause: %s" , host , e ) ; throw new DnsCacheManipulatorException ( message , e ) ; } }
Remove dns cache entry, cause lookup dns server for host after.
Remove dns cache entry cause lookup dns server for host after .