package dns-client

  1. Overview
  2. Docs

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

module Transport : Dns_client.S with type flow = Unix.file_descr and type io_addr = Unix.inet_addr * int and type stack = unit and type +'a io = 'a

A flow module based on blocking I/O on top of the Unix socket API.

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

Innovation. Community. Security.