From 118c3904dcdaea93893e8c8301f47497149b06ba Mon Sep 17 00:00:00 2001 From: Diva M Date: Tue, 21 May 2024 10:23:24 -0500 Subject: [PATCH] further unify the dns api by mentioning the trait and the submodule docs --- iroh-net/src/dns.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iroh-net/src/dns.rs b/iroh-net/src/dns.rs index fc146c4867a..49a8a29870b 100644 --- a/iroh-net/src/dns.rs +++ b/iroh-net/src/dns.rs @@ -1,5 +1,9 @@ //! This module exports a DNS resolver, which is also the default resolver used in the //! [`crate::Endpoint`] if no custom resolver is configured. +//! +//! It also exports [`ResolverExt`]: A extension trait over [`DnsResolver`] to perform DNS queries +//! by ipv4, ipv6, name and node_id. See the [`node_info`] module documentation for details on how +//! iroh node records are structured. use std::fmt::Write; use std::net::{IpAddr, Ipv6Addr};