pub struct DnsConfig {
pub rebind_protection: bool,
pub nameservers: Vec<Nameserver>,
pub query_timeout_ms: u64,
}Expand description
DNS interception settings for the sandbox.
Fields§
§rebind_protection: boolWhether DNS rebinding protection is enabled.
nameservers: Vec<Nameserver>Nameservers to forward DNS queries to. When empty, fall back to
the nameserver entries in the host’s /etc/resolv.conf. Set
this to pin specific resolvers (e.g. 1.1.1.1:53, dns.google)
or to work around split-DNS / VPN setups where the host’s
resolv.conf is incomplete. Accepts IPs, IP:PORT, or hostnames
(resolved once at startup via the host’s OS resolver).
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
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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