Module Async_dns_resolver

Async DNS resolution logic

type commfn = {
log : Async.Std.Log.t option;
txfn : Cstruct.t ‑> unit Async.Std.Deferred.t;
rxfn : (Cstruct.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 : ?⁠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.Std.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.Std.Deferred.Or_error.t