dns-forward

Library and tools for creating forwarding DNS servers
IN THIS PACKAGE
Parameter #2 Dns_forward . Rpc . Client . Persistent . Make . Framing
type request = Cstruct.t

A DNS request

type response = Cstruct.t

A DNS response

type t

A connection which can read and write complete DNS messages

type flow = Flow.flow

The flow over which we read and write complete DNS messages

val connect : flow -> t

Prepare to read and write complete DNS messages over the given flow

val read : t -> request Error.t

Read a complete DNS message

val write : t -> response -> unit Error.t

Write a complete DNS message

val close : t -> unit Lwt.t

Free resources and close the underlying flow