public abstract class

ResolverConfiguration

extends Object
java.lang.Object
   ↳ sun.net.dns.ResolverConfiguration

Class Overview

The configuration of the client resolver.

A ResolverConfiguration is a singleton that represents the configuration of the client resolver. The ResolverConfiguration is opened by invoking the open method.

Summary

Nested Classes
class ResolverConfiguration.Options Options representing certain resolver variables of a ResolverConfiguration
Protected Constructors
ResolverConfiguration()
Public Methods
abstract List nameservers()
Returns a list of name servers used for host name lookup.
static ResolverConfiguration open()
Opens the resolver configuration.
abstract ResolverConfiguration.Options options()
Returns the #Options for the resolver.
abstract List searchlist()
Returns a list corresponding to the domain search path.
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected ResolverConfiguration ()

Public Methods

public abstract List nameservers ()

Returns a list of name servers used for host name lookup. Each element in the list returns a String containing the textual representation of the IP address of the name server.

Returns
  • list of the name servers

public static ResolverConfiguration open ()

Opens the resolver configuration.

Returns
  • the resolver configuration

public abstract ResolverConfiguration.Options options ()

Returns the #Options for the resolver.

Returns
  • options for the resolver

public abstract List searchlist ()

Returns a list corresponding to the domain search path. The list is ordered by the search order used for host name lookup. Each element in the list returns a String containing a domain name or suffix.

Returns
  • list of domain names