package dns

  1. Overview
  2. Docs

Parameters

module K : V1_LWT.KV_RO
module S : V1_LWT.STACKV4

Signature

type t
type stack = S.t
type kv_ro = K.t
val create : stack -> kv_ro -> t
val eventual_process_of_zonefiles : t -> string list -> Dns.Packet.t Dns_server.process Lwt.t

Generate a Dns.Packet.tprocess from a list of filenames corresponding to zone files.

val serve_with_processor : t -> port:int -> processor:(module Dns_server.PROCESSOR) -> unit Lwt.t
val serve_with_zonefile : t -> port:int -> zonefile:string -> unit Lwt.t
val serve_with_zonefiles : t -> port:int -> zonefiles:string list -> unit Lwt.t
val serve_with_zonebuf : t -> port:int -> zonebuf:string -> unit Lwt.t
val serve_with_zonebufs : t -> port:int -> zonebufs:string list -> unit Lwt.t
OCaml

Innovation. Community. Security.