iroh_net::test_utils

Function create_dns_resolver

Source
pub fn create_dns_resolver(nameserver: SocketAddr) -> Result<TokioAsyncResolver>
Available on test or crate feature test-utils only.
Expand description

Create a DNS resolver with a single nameserver.