Files
EasyDNS/crates/dns-server/src/lib.rs
T
2026-11-22 14:21:54 +01:00

28 lines
1.0 KiB
Rust

//! EasyDNS server: ties the roles together.
//!
//! Query processing order (see docs/hybrid.md):
//! 1. parse / FORMERR, drop responses, rate limit (UDP),
//! 2. TSIG verification, opcode dispatch (QUERY / NOTIFY / UPDATE),
//! 3. zone transfers (AXFR/IXFR) with ACL + TSIG,
//! 4. most specific local authoritative zone visible in the client's view → AA answer,
//! 5. clients without recursion permission → REFUSED (no open resolver, no leaks),
//! 6. local-only names (RFC 6761/6303) → NXDOMAIN without leaving the host,
//! 7. allow/block policy,
//! 8. conditional forwarding (longest suffix), then the default resolution
//! (recursive / forward / forward-then-recursive), with a per-route cache namespace.
#![cfg_attr(test, allow(clippy::unwrap_used, clippy::expect_used))]
pub mod audit;
pub mod check;
pub mod coalesce;
pub mod handler;
pub mod listener;
pub mod packet_cache;
pub mod router;
pub mod runtime;
pub mod server;
pub mod tls;
pub use runtime::{Runtime, Shared};
pub use server::{Server, ServerHandle};