package dns-resolver
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=d852d15ca2f58db573679bf18688745600b91296e2e54486609869d666f3d12f
sha512=09d3b1cf76bccbff1a0c042922a3e9d6fa3605770d3d9d9aab3462f32d9156c87f6468b531f27dbcc1ce9030c1bd5f3c81c051f5f6a7ee7d802c1fddf1848058
doc/dns-resolver.mirage/Dns_resolver_mirage/Make/index.html
Module Dns_resolver_mirage.MakeSource
Parameters
module S : Tcpip.Stack.V4V6Signature
val resolver :
S.t ->
?root:bool ->
?timer:int ->
?udp:bool ->
?tcp:bool ->
?tls:Tls.Config.server ->
?port:int ->
?tls_port:int ->
Dns_resolver.t ->
tresolver 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
val resolve_external :
t ->
(Ipaddr.t * int) ->
string ->
[ `Close | `Data of int32 * string ] Lwt.tresolve_external t (ip, port) data resolves for (ip, port) the query data and returns a pair of the minimum TTL and a response.
primary_data t is the DNS trie of the primary for the resolver t.
update_primary_data t data updates the primary for the resolver t with the DNS trie data. Any 'notify's to secondaries are discarded - secondary name servers are not supported in this setup.
update_tls t tls_config updates the tls configuration to tls_config. If the resolver wasn't already listening for TLS connections it will start listening.
queries t returns the stream of resolved DNS queries and their replies.