package dns

  1. Overview
  2. Docs
type t = {
  1. client : (module Dns.Protocol.CLIENT);
  2. servers : (Ipaddr.t * int) list;
  3. search_domains : string list;
}
type config = [
  1. | `Resolv_conf of string
  2. | `Static of (Ipaddr.t * int) list * string list
]
val create : ?client:(module Dns.Protocol.CLIENT) -> ?config:config -> unit -> t Lwt.t
val gethostbyname : t -> ?q_class:Dns.Packet.q_class -> ?q_type:Dns.Packet.q_type -> string -> Ipaddr.t list Lwt.t
val gethostbyaddr : t -> ?q_class:Dns.Packet.q_class -> ?q_type:Dns.Packet.q_type -> Ipaddr.V4.t -> string list Lwt.t
OCaml

Innovation. Community. Security.