package dns-client

  1. Overview
  2. Docs
DNS client API

Install

Dune Dependency

Authors

Maintainers

Sources

dns-10.1.0.tbz
sha256=5c6fea514cec39c732e71764643e8fb9588dee038c991c184accbed3b41e37d2
sha512=58f74749cdc7c5d6adb059821dca42d2a20ae05dd989c93afddbd37806c748cb2709a51f2c7880e79d1bf99384639aa40c4a540047cb27da6ed609ca8eeb6eca

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 (module Mirage_crypto_rng.Fortuna)).

Sourcemodule Transport : Dns_client.S with type io_addr = Ipaddr.t * 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 transport : t -> Transport.t
Sourceval create : ?cache_size:int -> ?edns:[ `Auto | `Manual of Dns.Edns.t | `None ] -> ?nameservers:(Dns.proto * Transport.io_addr list) -> ?timeout:int64 -> Transport.stack -> t
Sourceval nameservers : t -> Dns.proto * Transport.io_addr list
Sourceval getaddrinfo : t -> 'response Dns.Rr_map.key -> 'a Domain_name.t -> ('response, [> `Msg of string ]) result Transport.io
Sourceval gethostbyname : t -> [ `host ] Domain_name.t -> (Ipaddr.V4.t, [> `Msg of string ]) result Transport.io
Sourceval gethostbyname6 : t -> [ `host ] Domain_name.t -> (Ipaddr.V6.t, [> `Msg of string ]) result Transport.io
Sourceval get_resource_record : t -> '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
Sourceval get_raw_reply : t -> 'response Dns.Rr_map.key -> 'a Domain_name.t -> (Dns.Packet.reply, [> `Msg of string | `Partial ]) result Transport.io
OCaml

Innovation. Community. Security.