package dns-client

  1. Overview
  2. Docs
Pure DNS resolver API

Install

Dune Dependency

Authors

Maintainers

Sources

dns-v4.6.3.tbz
sha256=be69bc317369409fc4dfbab1120ced7510313888105a4d13071b962a07e1fd3c
sha512=32082237c7ae922edc63822fe0f6447fb83b9fb40546a196cda4904078b4129e601b4413c95b7c51e012f27c654324e18619ab8aed53969ff07fded13378c2c6

doc/dns-client.unix/Dns_client_unix/index.html

Module Dns_client_unixSource

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

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

Sourcemodule Transport : Dns_client.S with 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
Sourceval create : ?size:int -> ?nameserver:Transport.ns_addr -> ?timeout:int64 -> Transport.stack -> t
Sourceval nameserver : t -> Transport.ns_addr
Sourceval getaddrinfo : t -> ?nameserver:Transport.ns_addr -> 'response Dns.Rr_map.key -> 'a Domain_name.t -> ('response, [> `Msg of string ]) result Transport.io
Sourceval gethostbyname : t -> ?nameserver:Transport.ns_addr -> [ `host ] Domain_name.t -> (Ipaddr.V4.t, [> `Msg of string ]) result Transport.io
Sourceval gethostbyname6 : t -> ?nameserver:Transport.ns_addr -> [ `host ] Domain_name.t -> (Ipaddr.V6.t, [> `Msg of string ]) result Transport.io
Sourceval 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 ]) result Transport.io
OCaml

Innovation. Community. Security.