package dns-forward-lwt-unix

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

A forwarding DNS proxy over TCP

type t

A forwarding DNS proxy

type resolver = Resolver.Tcp.t
val create : resolver -> t Lwt.t

Construct a server given a resolver configuration

val serve : address:Dns_forward.Config.Address.t -> t -> unit Dns_forward.Error.t

Serve requests on the given address forever

val destroy : t -> unit Lwt.t

Shutdown the server and release allocated resources