Module Dns__Protocol

exception Dns_resolve_timeout
exception Dns_resolve_error of exn list
module type CLIENT : sig ... end

The type of pluggable DNS resolver modules for request contexts and custom metadata and wire protocols.

module Client : CLIENT

The default DNS resolver using the standard DNS protocol

module type SERVER : sig ... end

The type of pluggable DNS server modules for request contexts and custom metadata dn wire protocols.

module Server : SERVER with type context = Dns.Packet.t

The default DNS server using the standard DNS protocol

val contain_exc : string ‑> (unit ‑> 'a) ‑> 'a option