package dns

  1. Overview
  2. Docs
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 gethostbyname : ?q_class:Dns.Packet.q_class -> ?q_type:Dns.Packet.q_type -> commfn -> string -> Ipaddr.V4.t list Lwt.t
val gethostbyaddr : ?q_class:Dns.Packet.q_class -> ?q_type:Dns.Packet.q_type -> commfn -> Ipaddr.V4.t -> string list Lwt.t
OCaml

Innovation. Community. Security.