pub struct Config {
pub owner: String,
pub servers: Vec<IpAddr>,
pub domains: Vec<String>,
pub device: Option<String>,
}Expand description
DNS configuration to apply with crate::SetDns.
Fields§
§owner: StringOwner identifier used to mark system DNS state written by this crate.
Must be 1 to 64 ASCII bytes and contain only letters, digits, ., _,
and -.
servers: Vec<IpAddr>DNS servers to use while the handle is alive. Must not be empty.
domains: Vec<String>DNS suffixes for split DNS. An empty list selects global DNS.
Suffixes are ASCII DNS names such as corp.internal. A leading *. is
accepted to express wildcard intent, so *.corp.internal normalizes to
the same suffix as corp.internal.
device: Option<String>Optional platform target, usually a network interface name.
Linux treats this as an interface name and requires it for split DNS. macOS treats it as a BSD interface name for global DNS and ignores it for split DNS. Windows uses it for global interface DNS and ignores it for split DNS.