Rust

lookup

Module

Finding the addresses a hostname points to.

Contents

use utopia_dns::lookup::Recursive;
Rust
pub struct Recursive

Asks the given recursive resolvers in order, over TCP (no 512-byte truncation, and IPv6 servers work), instead of the system resolver, so names only the local network knows (/etc/hosts, search domains, cluster services) never resolve.

A server that fails, cannot be reached, or answers anything but NOERROR or NXDOMAIN for either family is skipped; when none answers for both, the hostname resolves to nothing rather than half its addresses.

use utopia_dns::lookup::Lookup;
Rust
pub trait Lookup: Send + Sync

Finds the addresses a hostname points to.

Implemented byRecursive