package dns-client

  1. Overview
  2. Docs

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

The Dns_client is available as Dns_client_lwt after linking to dns-client.lwt in your dune file.

It initializes the RNG (using Mirage_crypto_rng_lwt.initialize ()).

module Transport : Dns_client.S with 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 : ?size:int -> ?nameserver:Transport.ns_addr -> ?timeout: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
val get_resource_record : t -> ?nameserver:Transport.ns_addr -> 'response Dns.Rr_map.key -> 'a Domain_name.t -> ('response, [> `Msg of string | `No_data of [ `raw ] Domain_name.t * Dns.Soa.t | `No_domain of [ `raw ] Domain_name.t * Dns.Soa.t ]) Stdlib.result Transport.io
OCaml

Innovation. Community. Security.