This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
(* (c) 2017, 2018 Hannes Mehnert, all rights reserved *)
|
||||
|
||||
module Make (S : Tcpip.Stack.V4V6) : sig
|
||||
type t
|
||||
|
||||
val resolver
|
||||
: S.t -> ?root:bool -> ?timer:int -> ?udp:bool -> ?tcp:bool -> ?tls:Tls.Config.server -> ?port:int -> ?tls_port:int
|
||||
-> Dns_resolver.t -> t
|
||||
(** [resolver stack ~root ~timer ~udp ~tcp ~tls ~port ~tls_port resolver]
|
||||
registers a caching resolver on the provided protocols [udp], [tcp], [tls]
|
||||
using [port] for udp and tcp (defaults to 53), [tls_port] for tls (defaults
|
||||
to 853) using the [resolver] configuration. The [timer] is in milliseconds
|
||||
and defaults to 500 milliseconds.*)
|
||||
|
||||
include Dns_resolver_mirage_shared.S with type t := t
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue