Struct resolv_conf::Config [] [src]

pub struct Config {
    pub nameservers: Vec<IpAddr>,
    pub search: Vec<String>,
    pub sortlist: Vec<Network>,
    pub debug: bool,
    pub ndots: u32,
    pub timeout: u32,
    pub attempts: u32,
    pub rotate: bool,
    pub no_check_names: bool,
    pub inet6: bool,
    pub ip6_bytestring: bool,
    pub ip6_dotint: bool,
    pub edns0: bool,
    pub single_request: bool,
    pub single_request_reopen: bool,
    pub no_tld_query: bool,
    pub use_vc: bool,
}

Encompasses the nameserver configuration

Currently the options and defaults match those of linux/glibc

Fields

List of nameservers

List of suffixes to append to name when it doesn't contain ndots

List of preferred addresses

Enable DNS resolve debugging

Number of dots in name to try absolute resolving first (default 1)

Dns query timeout (default 5 [sec])

Number of attempts to resolve name if server is inaccesible (default 2)

Round-robin selection of servers (default false)

Don't check names for validity (default false)

Try AAAA query before A

Use reverse lookup of ipv6 using bit-label format described instead of nibble format

Do ipv6 reverse lookups in ip6.int zone instead of ip6.arpa (default false)

Enable dns extensions described in RFC 2671

Don't make ipv4 and ipv6 requests simultaneously

Use same socket for the A and AAAA requests

Don't resolve unqualified name as top level domain

Force using TCP for DNS resolution

Methods

impl Config
[src]

Trait Implementations

impl Clone for Config
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Config
[src]

Formats the value using the given formatter.