package mirage-dns

  1. Overview
  2. Docs

Parameters

Signature

include S with type stack = Stack.t and type kv_ro = K.t
type t
type stack = Stack.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.