Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Async DNS resolution logic
type commfn = {
log : Async.Log.t option;
txfn : Cstruct.t -> unit Async.Deferred.t;
rxfn : (Cstruct.t -> Dns.Packet.t option) -> Dns.Packet.t Async.Deferred.t;
timerfn : unit -> unit Async.Deferred.t;
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