pub struct DnsConfig {
pub rebind_protection: bool,
pub nameservers: Vec<String>,
pub query_timeout_ms: u64,
}Expand description
DNS interception and filtering settings. Carried in NetworkSpec::dns.
Fields§
§rebind_protection: boolWhether DNS-rebinding protection is enabled. Default: true.
nameservers: Vec<String>Upstream nameservers as IP, IP:PORT, HOST, or HOST:PORT
strings. Empty falls back to the host’s /etc/resolv.conf.
query_timeout_ms: u64Per-query timeout in milliseconds. Default: 5000.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DnsConfig
impl<'de> Deserialize<'de> for DnsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DnsConfig
impl StructuralPartialEq for DnsConfig
Auto Trait Implementations§
impl Freeze for DnsConfig
impl RefUnwindSafe for DnsConfig
impl Send for DnsConfig
impl Sync for DnsConfig
impl Unpin for DnsConfig
impl UnsafeUnpin for DnsConfig
impl UnwindSafe for DnsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more