Crate dns_uri

Crate dns_uri 

Source
Expand description

§dns-uri

Crates.io Docs.rs MIT OR Apache-2.0 licensed

Simple parser / formatter of DNS server URIs.

§Supported formats

Like AdGuard Home’s DNS server address format, the following formats are supported:

  • Regular DNS: w/o scheme or w/ scheme udp://, or w/ scheme tcp://.
  • DNS over TLS: scheme tls://
  • DNS over HTTPS: scheme https://
  • DNS over HTTP/3: scheme h3://
  • DNS over QUIC: scheme quic://
  • DNSCrypt: scheme sdns://

§LICENSE

Licensed under either of MIT or Apache-2.0 at your option.

Enums§

Host
The parsed host of a DNS server.
ParseError
Error parsing a DNS server address.
Uri
URI of a DNS server.