All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xbill.DNS.config.ResolverConfigProvider Maven / Gradle / Ivy

There is a newer version: 3.6.2_1
Show newest version
// SPDX-License-Identifier: BSD-2-Clause
package org.xbill.DNS.config;

import java.net.InetSocketAddress;
import java.util.List;
import org.xbill.DNS.Name;

public interface ResolverConfigProvider {
  /** Initializes the servers, search paths, etc. */
  void initialize() throws InitializationException;

  /** Returns all located servers, which may be empty. */
  List servers();

  /** Returns all entries in the located search path, which may be empty. */
  List searchPaths();

  /**
   * Gets the threshold for the number of dots which must appear in a name before it is considered
   * absolute. The default is {@code -1}, meaning this provider does not supported reading the ndots
   * configuration.
   */
  default int ndots() {
    return -1;
  }

  /** Determines if this provider is enabled. */
  default boolean isEnabled() {
    return true;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy