package dns-async

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Async DNS resolution logic

type commfn = {
  1. log : Async.Log.t option;
  2. txfn : Cstruct.t -> unit Async.Deferred.t;
  3. rxfn : (Cstruct.t -> Dns.Packet.t option) -> Dns.Packet.t Async.Deferred.t;
  4. timerfn : unit -> unit Async.Deferred.t;
  5. cleanfn : unit -> unit Async.Deferred.t;
}
val resolve : ?alloc:(unit -> Cstruct.t) -> ?dnssec:bool -> (module Dns.Protocol.CLIENT) -> commfn -> Dns.Packet.q_class -> Dns.Packet.q_type -> Dns.Name.t -> Dns.Packet.t Async.Deferred.Or_error.t
val gethostbyname : ?alloc:(unit -> Cstruct.t) -> ?q_class:Dns.Packet.q_class -> ?q_type:Dns.Packet.q_type -> commfn -> string -> Ipaddr.t list Async.Deferred.Or_error.t
OCaml

Innovation. Community. Security.