Module Async_dns_resolver

Async DNS resolution logic

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