Skip to main content

Serve

Function Serve 

Source
pub async fn Serve(Catalog: Catalog, Port: u16) -> Result<()>
Expand description

Serves DNS queries on the specified loopback port (async).

Binds to 127.0.0.1:{Port} for both UDP and TCP. Validates that the socket is bound to a loopback address before accepting connections.