Rust

client

Module

A DNS client over UDP or TCP.

Contents

use utopia_dns::Client;
Rust
pub struct Client

Sends queries to one DNS server and decodes the answers.

Over UDP the answer is read into 512 bytes (RFC 1035 §4.2.1); over TCP it is length-prefixed and complete. An answer whose id differs from the query's is refused.