Struct iroh_dns_server::dns::DnsConfig
source · pub struct DnsConfig {
pub port: u16,
pub bind_addr: Option<IpAddr>,
pub default_soa: String,
pub default_ttl: u32,
pub origins: Vec<String>,
pub rr_a: Option<Ipv4Addr>,
pub rr_aaaa: Option<Ipv6Addr>,
pub rr_ns: Option<String>,
}
Expand description
DNS server settings
Fields§
§port: u16
The port to serve a local UDP DNS server at
bind_addr: Option<IpAddr>
The IPv4 or IPv6 address to bind the UDP DNS server.
Uses 0.0.0.0
if unspecified.
default_soa: String
SOA record data for any authoritative DNS records
default_ttl: u32
Default time to live for returned DNS records (TXT & SOA)
origins: Vec<String>
Domain used for serving the _iroh_node.<nodeid>.<origin>
DNS TXT entry
rr_a: Option<Ipv4Addr>
A
record to set for all origins
rr_aaaa: Option<Ipv6Addr>
AAAA
record to set for all origins
rr_ns: Option<String>
NS
record to set for all origins
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 UnwindSafe for DnsConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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