Package io.netty.resolver.dns
Class UnixResolverOptions
java.lang.Object
io.netty.resolver.dns.UnixResolverOptions
Represents options defined in a file of the format etc/resolv.conf.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
attempts()
The maximum allowed number of DNS queries to send when resolving a host name.(package private) int
ndots()
The number of dots which must appear in a name before an initial absolute query is made.(package private) static UnixResolverOptions.Builder
(package private) int
timeout()
The timeout of each DNS query performed by this resolver (in seconds).toString()
-
Field Details
-
ndots
private final int ndots -
timeout
private final int timeout -
attempts
private final int attempts
-
-
Constructor Details
-
UnixResolverOptions
UnixResolverOptions(int ndots, int timeout, int attempts)
-
-
Method Details
-
newBuilder
-
ndots
int ndots()The number of dots which must appear in a name before an initial absolute query is made. The default value is1
. -
timeout
int timeout()The timeout of each DNS query performed by this resolver (in seconds). The default value is5
. -
attempts
int attempts()The maximum allowed number of DNS queries to send when resolving a host name. The default value is16
. -
toString
-