Available on non-
wasm_browser only.Expand description
Configurable DNS resolver for iroh-relay and iroh.
The main export is the DnsResolver struct. It provides methods to resolve domain names
to IPv4 and IPv6 addresses. Additionally, the resolver features methods to resolve the
EndpointInfo for an iroh EndpointId from _iroh TXT records.
See the endpoint_info module documentation for details on how iroh endpoint records
are structured.
Structs§
- Builder
- Builder for
DnsResolver. - DnsResolver
- The DNS resolver used throughout
iroh. - Staggered
Error - Error returned when a staggered call fails.
- TxtRecord
Data - Record data for a TXT record.
Enums§
- DnsError
- Potential errors related to DNS operations.
- DnsProtocol
- Protocols over which DNS records can be resolved.
- Lookup
Error - Potential errors related to DNS endpoint address lookups.
Constants§
- N0_
DNS_ ENDPOINT_ ORIGIN_ PROD - The n0 address lookup DNS origin, for production.
- N0_
DNS_ ENDPOINT_ ORIGIN_ STAGING - The n0 address lookup DNS origin, for testing.
Traits§
- Resolver
- Trait for DNS resolvers used in iroh.
Type Aliases§
- BoxIter
- Boxed iterator alias.