AddressResolverOptions(Integer? cacheMaxTimeToLive = null, Integer? cacheMinTimeToLive = null, Integer? cacheNegativeTimeToLive = null, String? hostsPath = null, Integer? maxQueries = null, Boolean? optResourceEnabled = null, Integer? queryTimeout = null, Boolean? rdFlag = null, {String*}? servers = null)Parameters: cacheMaxTimeToLive = nullSet the cache maximum TTL value in seconds. After successful resolution IP addresses are cached with their DNS response TTL,
use this to set a maximum value to all responses TTL.
cacheMinTimeToLive = nullSet the cache minimum TTL value in seconds. After resolution successful IP addresses are cached with their DNS response TTL,
use this to set a minimum value to all responses TTL.
cacheNegativeTimeToLive = nullSet the negative cache TTL value in seconds. After a failed hostname resolution, DNS queries won't be retried
for a period of time equals to the negative TTL. This allows to reduce the response time of negative replies
and reduce the amount of messages to DNS servers.
hostsPath = nullSet the path of an alternate hosts configuration file to use instead of the one provided by the os.
The default value is null, so the operating system hosts config is used.
maxQueries = nullSet the maximum number of queries when an hostname is resolved.
optResourceEnabled = nullSet to true to enable the automatic inclusion in DNS queries of an optional record that hints
the remote DNS server about how much data the resolver can read per response.
queryTimeout = nullSet the query timeout in milliseconds, i.e the amount of time after a query is considered to be failed.
rdFlag = nullSet the DNS queries Recursion Desired flag value.
servers = nullSet the list of DNS server addresses, an address is the IP of the dns server, followed by an optional
colon and a port, e.g 8.8.8.8 or {code 192.168.0.1:40000}. When the list is empty, the resolver
will use the list of the system DNS server addresses from the environment, if that list cannot be retrieved
it will use Google's public DNS servers “8.8.8.8” and “8.8.4.4”.
|