Struct domain::resolv::conf::ResolvOptions[][src]

pub struct ResolvOptions {
    pub aa_only: bool,
    pub use_vc: bool,
    pub primary: bool,
    pub ign_tc: bool,
    pub recurse: bool,
    pub default_names: bool,
    pub stay_open: bool,
    pub dn_search: bool,
    pub use_inet6: bool,
    pub rotate: bool,
    pub no_check_name: bool,
    pub keep_tsig: bool,
    pub blast: bool,
    pub use_bstring: bool,
    pub use_ip6dotint: bool,
    pub use_edns0: bool,
    pub single_request: bool,
    pub single_request_reopen: bool,
    pub no_tld_query: bool,
}

Options for the resolver configuration.

This type contains a lot of flags that influence the resolver configuration. It collects all the flags that glibc’s resolver supports. Not all of them are currently supported by this implementation.

Fields

Accept authoritative answers only.

Only responses with the AA bit set will be considered. If there aren’t any, the query will fail.

This option is not currently implemented. It is likely to be eventually implemented by the query.

Always use TCP.

This option is implemented by the query.

Query primary name servers only.

This option is not currently implemented. It is unclear what exactly it is supposed to mean.

Ignore trunactions errors, don’t retry with TCP.

This option is implemented by the query.

Set the recursion desired bit in queries.

Enabled by default.

Implemented by the query request.

Append the default domain name to single component names.

Enabled by default.

This is not currently implemented. Instead, the resolver config’s search and ndots fields govern resolution of relative names of all kinds.

Keep TCP connections open between queries.

This is not currently implemented. Instead, TCP connections always stay open for the time given by the resolver configuration’s idle_timeout.

Search hostnames in the current domain and parent domains.

Enabled by default.

This options is not currently implemented. Instead, the resolver config’s search and ndots fields govern resolution of relative names.

Try AAAA query before A query and map IPv4 responses to tunnel form.

This option is not currently implemented. It is only relevant for lookup_host.

Use round-robin selection of name servers.

This option is implemented by the query.

Disable checking of incoming hostname and mail names.

This is not currently implemented. Or rather, this is currently always on—there is no name checking as yet.

Do not strip TSIG records.

This is not currently implemented. Or rather, no records are stripped at all.

Send each query simultaneously to all name servers.

This is not currently implemented. It would be a query option.

Use bit-label format for IPv6 reverse lookups.

This option is only relevant for lookup_addr() and is implemented there already.

Use ip6.int instead of the recommended ip6.arpa.

(This option is the reverse of glibc’s RES_NOIP6DOTINT option).

This option is only relevant for lookup_addr() and is implemented there already.

Use EDNS0.

EDNS is not yet supported.

Perform IPv4 and IPv6 lookups sequentially instead of in parallel.

This is not yet implemented but would be an option for lookup_host().

Open a new socket for each request.

This is not currently implemented.

Don’t look up unqualified names as top-level-domain.

This is not currently implemented. Instead, the resolver config’s search and ndots fields govern resolution of relative names of all kinds.

Trait Implementations

impl Clone for ResolvOptions
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ResolvOptions
[src]

Formats the value using the given formatter. Read more

impl Default for ResolvOptions
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations