package dns-client

  1. Overview
  2. Docs

Lwt_unix helper module for Dns_client. For more information see the Dns_client_flow.Make functor.

module Uflow : Dns_client_flow.S with type flow = Lwt_unix.file_descr and type io_addr = Lwt_unix.inet_addr * int and type +'a io = 'a Lwt.t and type stack = unit

A flow module based on non-blocking I/O on top of the Lwt_unix socket API.

include sig ... end
val create : ?rng:(int -> Cstruct.t) -> ?nameserver:Uflow.ns_addr -> Uflow.stack -> Uflow.t
val nameserver : Uflow.t -> Uflow.ns_addr
val getaddrinfo : Uflow.t -> ?nameserver:Uflow.ns_addr -> 'response Dns.Rr_map.key -> 'a Domain_name.t -> ('response, [> `Msg of string ]) result Uflow.io
val gethostbyname : Uflow.t -> ?nameserver:Uflow.ns_addr -> [ `host ] Domain_name.t -> (Ipaddr.V4.t, [> `Msg of string ]) result Uflow.io
val gethostbyname6 : Uflow.t -> ?nameserver:Uflow.ns_addr -> [ `host ] Domain_name.t -> (Ipaddr.V6.t, [> `Msg of string ]) result Uflow.io
OCaml

Innovation. Community. Security.