package dns

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type commfn = {
  1. txfn : Dns.Buf.t -> unit Lwt.t;
  2. rxfn : (Dns.Buf.t -> Dns.Packet.t option) -> Dns.Packet.t Lwt.t;
  3. timerfn : unit -> unit Lwt.t;
  4. cleanfn : unit -> unit Lwt.t;
}
val resolve_pkt : (module Dns.Protocol.CLIENT) -> ?alloc:(unit -> Dns.Buf.t) -> commfn -> Dns.Packet.t -> Dns.Packet.t Lwt.t
val resolve : (module Dns.Protocol.CLIENT) -> ?alloc:(unit -> Dns.Buf.t) -> ?dnssec:bool -> commfn -> Dns.Packet.q_class -> Dns.Packet.q_type -> Dns.Name.domain_name -> Dns.Packet.t Lwt.t
val gethostbyname : ?alloc:(unit -> Dns.Buf.t) -> ?q_class:Dns.Packet.q_class -> ?q_type:Dns.Packet.q_type -> commfn -> string -> Ipaddr.t list Lwt.t
val gethostbyaddr : ?alloc:(unit -> Dns.Buf.t) -> ?q_class:Dns.Packet.q_class -> ?q_type:Dns.Packet.q_type -> commfn -> Ipaddr.V4.t -> string list Lwt.t
OCaml

Innovation. Community. Security.