code: public static List<DnsCacheEntry> listDnsCache() {
          try {
              return InetAddressCacheUtil.listInetAddressCache().getCache();
          } catch (Exception e) {
              throw new DnsCacheManipulatorException("Fail to listDnsCache, cause: " + e.toString(), e);
          }
      }
docs: Get all dns cache entries.
  
  @return dns cache entries
  @throws DnsCacheManipulatorException Operation fail
  @see #getWholeDnsCache()
  @since 1.2.0