package mirage-dns

  1. Overview
  2. Docs
type t
type stack
type kv_ro
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