Rust

resolver

Module

Resolvers: how a server answers a query.

Contents

use utopia_dns::resolver::Memory;
Rust
pub struct Memory

An authoritative resolver over one zone held in memory.

Multi-record answers are shuffled with its own generator, seeded from the operating system unless given (Memory::with_seed).

use utopia_dns::resolver::Proxy;
Rust
pub struct Proxy

Forwards queries to another DNS server over UDP.

use utopia_dns::resolver::Resolver;
Rust
pub trait Resolver: Send + Sync + 'static

Answers queries. Implement it to serve records from a database, an API or anything else; wrap another resolver to add tracing, rate limiting or caching around it.

An error makes the server answer SERVFAIL and report the error to its error handlers.

Implemented byMemoryProxy