code: public static void setDnsNegativeCachePolicy(int negativeCacheSeconds) {
          try {
              InetAddressCacheUtil.setDnsNegativeCachePolicy(negativeCacheSeconds);
          } catch (Exception e) {
              throw new DnsCacheManipulatorException("Fail to setDnsNegativeCachePolicy, cause: " + e.toString(), e);
          }
      }
docs: Set JVM DNS negative cache policy
  
  @param negativeCacheSeconds set default dns cache time. Special input case:
  <ul>
  <li> {@code -1} means never expired.(In effect, all negative value)</li>
  <li> {@code 0} never cached.</li>
  </ul>
  @throws DnsCacheManipulatorException Operation fail
  @since 1.3.0