public static List<DnsCacheEntry> listDnsCache() {
        try {
            return InetAddressCacheUtil.listInetAddressCache().getCache();
        } catch (Exception e) {
            throw new DnsCacheManipulatorException("Fail to listDnsCache, cause: " + e.toString(), e);
        }
    }
public static List < DnsCacheEntry > listDnsCache ( ) { try { return InetAddressCacheUtil . listInetAddressCache ( ) . getCache ( ) ; } catch ( Exception e ) { throw new DnsCacheManipulatorException ( "Fail to listDnsCache, cause: " + e . toString ( ) , e ) ; } }
Get all dns cache entries.

@return dns cache entries
@throws DnsCacheManipulatorException Operation fail
@see #getWholeDnsCache()
@since 1.2.0