[−][src]Struct domain_resolv::stub::conf::ResolvOptions
Options for the resolver configuration.
This type contains a lot of options that influence the resolver configuration. It collects all server-indpendent options that glibc’s resolver supports. Not all of them are currently supported by this implementation.
Fields
search: SearchList
Search list for host-name lookup.
ndots: usize
TODO Sortlist sortlist: ?? Number of dots before an initial absolute query is made.
timeout: Duration
Timeout to wait for a response.
attempts: usize
Number of retries before giving up.
aa_only: bool
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.
use_vc: bool
Always use TCP.
This option is implemented by the query.
primary: bool
Query primary name servers only.
This option is not currently implemented. It is unclear what exactly it is supposed to mean.
ign_tc: bool
Ignore trunactions errors, don’t retry with TCP.
This option is implemented by the query.
recurse: bool
Set the recursion desired bit in queries.
Enabled by default.
Implemented by the query request.
default_names: bool
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.
stay_open: bool
Keep TCP connections open between queries.
This is not currently implemented.
dn_search: bool
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.
use_inet6: bool
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
.
rotate: bool
Use round-robin selection of name servers.
This option is implemented by the query.
no_check_name: bool
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.
keep_tsig: bool
Do not strip TSIG records.
This is not currently implemented. Or rather, no records are stripped at all.
blast: bool
Send each query simultaneously to all name servers.
This is not currently implemented. It would be a query option.
use_bstring: bool
Use bit-label format for IPv6 reverse lookups.
Bit labels have been deprecated and consequently, this option is not implemented.
use_ip6dotint: bool
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: bool
Use EDNS0.
EDNS is not yet supported.
single_request: bool
Perform IPv4 and IPv6 lookups sequentially instead of in parallel.
This is not yet implemented but would be an option for
lookup_host()
.
single_request_reopen: bool
Open a new socket for each request.
This is not currently implemented.
no_tld_query: bool
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]
fn clone(&self) -> ResolvOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for ResolvOptions
[src]
impl Debug for ResolvOptions
[src]
Auto Trait Implementations
impl Send for ResolvOptions
impl Sync for ResolvOptions
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,