package mirage-conduit

  1. Overview
  2. Docs

Given a DNS resolver implementation, provide a Resolver_lwt that can perform DNS lookups to return endpoints.

Parameters

Signature

module DNS = DNS
val default_ns : Ipaddr.V4.t

Default resolver to use, which is 8.8.8.8 (Google DNS).

val vchan_resolver : tld:string -> Resolver_lwt.rewrite_fn
val dns_stub_resolver : ?ns:Ipaddr.V4.t -> ?ns_port:int -> DNS.t -> Resolver_lwt.rewrite_fn

dns_stub_resolver ?ns ?dns_port dns will return a resolver that uses the stub resolver ns on port ns_port to resolve URIs via the dns network interface.

val register : ?ns:Ipaddr.V4.t -> ?ns_port:int -> ?stack:DNS.stack -> Resolver_lwt.t -> unit

register ?ns ?ns_port ?stack res TODO

val init : ?ns:Ipaddr.V4.t -> ?ns_port:int -> ?stack:DNS.stack -> unit -> Resolver_lwt.t

init ?ns ?ns_port ?stack () TODO

OCaml

Innovation. Community. Security.