Struct resolv_conf::Config [] [src]

pub struct Config {
    pub nameservers: Vec<IpAddr>,
    pub search: Vec<String>,
    pub sortlist: Vec<Network>,
    pub ndots: u32,
    pub timeout: 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,
}

Fields

nameservers: Vec<IpAddr>

List of nameservers

search: Vec<String>

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

sortlist: Vec<Network>

List of preferred addresses

ndots: u32

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

timeout: u32

Dns query timeout (default 5 [sec])

rotate: bool

Round-robin selection of servers (default false)

no_check_names: bool

Don't check names for validity (default false)

inet6: bool

Try AAAA query before A

ip6_bytestring: bool

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

ip6_dotint: bool

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

edns0: bool

Enable dns extensions described in RFC 2671

single_request: bool

Don't make ipv4 and ipv6 requests simultaneously

single_request_reopen: bool

Use same socket for the A and AAAA requests

Methods

impl Config
[src]

fn new() -> Config

fn parse(buf: &[u8]) -> Result<Config, ParseError>

Trait Implementations

impl Debug for Config
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Config
[src]

fn clone(&self) -> Config

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more