package dns

  1. Overview
  2. Docs
val bind_fd : address:string -> port:int -> (Lwt_unix.file_descr * Lwt_unix.sockaddr) Lwt.t
type dnsfn = src:Lwt_unix.sockaddr -> dst:Lwt_unix.sockaddr -> Dns.Packet.t -> Dns.Query.query_answer option Lwt.t
val listen : fd:Lwt_unix.file_descr -> src:Lwt_unix.sockaddr -> dnsfn:dnsfn -> unit Lwt.t
val listen_with_zonebuf : address:string -> port:int -> zonebuf:string -> mode:[ `none ] -> unit Lwt.t
val listen_with_zonefile : address:string -> port:int -> zonefile:string -> unit Lwt.t
OCaml

Innovation. Community. Security.