package dns

  1. Overview
  2. Docs
type commfn = (Dns.Buf.t -> unit Lwt.t) * ((Dns.Buf.t -> Dns.Packet.t option) -> Dns.Packet.t 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.