package dns-client

  1. Overview
  2. Docs
Pure DNS resolver API

Install

Dune Dependency

Authors

Maintainers

Sources

dns-v4.4.1.tbz
sha256=c8b2a49485c7a1bed06c3be47c80c6e865728e3f6658407e179bc5099c4c80a1
sha512=f9997cf9bbe4705ff9d49b3b69300cf5eec12c79bec68e32e20c0356e10fb9e7a150b08e627e429d2eaaf35befcdbabc738dff8535a763e7c57d825d006e21ea

doc/dns-client/Dns_client/index.html

Module Dns_clientSource

TODO ideally there'd be something like mirage-flow-lwt that didn't depend on lwt and a ton of other things, and still provided map and connect and so on. leaving this stuff here for now until a better solution presents itself.

Sourceval stdlib_random : int -> Cstruct.t

stdlib_random len is a buffer of size len, filled with random data. This function is used by default (in the Unix and Lwt implementations) for filling the ID field of the DNS packet. Internally, the Random module from the OCaml standard library is used, which is not cryptographically secure. If desired Nocrypto.Rng.generate can be passed to S.create.

Sourceval default_resolver : string

default_resolver is the IPv4 address in dotted-decimal form of the default resolver. Currently it is the IP address of the UncensoredDNS.org anycast service.

Sourcemodule type S = sig ... end
Sourcemodule Make (T : S) : sig ... end
Sourcemodule Pure : sig ... end

The pure interface to the client part of uDns.

OCaml

Innovation. Community. Security.