package dns-forward

  1. Overview
  2. Docs

Use UDP framing

Read and write framed DNS packets

Parameters

module Flow : V1_LWT.FLOW

Signature

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

OCaml

Innovation. Community. Security.