package dns-client
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
DNS resolver API
Install
dune-project
Dependency
Authors
Maintainers
Sources
dns-6.3.0.tbz
sha256=dc40237a737d1088b83ec5c26437af9843c3692e316c449b71b07ba458307351
sha512=4716559298ab5c5c47bcb94f3614ea3309033a710469ca2a16e1eda8012b596897a9f26007ed8fb360e6119cf94e88c4ae7e74137863959a4c54aa9983277020
doc/dns-client.mirage/Dns_client_mirage/Make/index.html
Module Dns_client_mirage.MakeSource
Parameters
module R : Mirage_random.Smodule T : Mirage_time.Smodule M : Mirage_clock.MCLOCKmodule P : Mirage_clock.PCLOCKmodule S : Tcpip.Stack.V4V6Signature
include sig ... end
Source
val create :
?size:int ->
?edns:[ `Auto | `Manual of Dns.Edns.t | `None ] ->
?nameservers:(Dns.proto * Transport.io_addr list) ->
?timeout:int64 ->
Transport.stack ->
tSource
val getaddrinfo :
t ->
'response Dns.Rr_map.key ->
'a Domain_name.t ->
('response, [> `Msg of string ]) result Transport.ioSource
val gethostbyname :
t ->
[ `host ] Domain_name.t ->
(Ipaddr.V4.t, [> `Msg of string ]) result Transport.ioSource
val gethostbyname6 :
t ->
[ `host ] Domain_name.t ->
(Ipaddr.V6.t, [> `Msg of string ]) result Transport.ioSource
val get_resource_record :
t ->
'response Dns.Rr_map.key ->
'a Domain_name.t ->
('response,
[> `Msg of string
| `No_data of [ `raw ] Domain_name.t * Dns.Soa.t
| `No_domain of [ `raw ] Domain_name.t * Dns.Soa.t ])
result
Transport.ioSource
val get_raw_reply :
t ->
'response Dns.Rr_map.key ->
'a Domain_name.t ->
(Dns.Packet.reply, [> `Msg of string | `Partial ]) result Transport.ionameserver_of_string authenticators str returns a Transport.io_addr from the given string. The format is:
tcp:<ipaddr>(:port)?for a simple nameserver and we will communicate with it via the TCP/IP protocoltls:<ipaddr>(:port)?(!authenticator)?for a nameserver and we will communicate with it via the TCP/IP protocol plus the TLS encrypted layer. The user can verify the nameserver via an authenticator (seeX509.Authenticator.of_stringfor the format of it). By default,Ca_certs_nss.authenticatoris used.
connect ?nameservers ?timeout stack creates a DNS entity which is able to resolve domain-name. It expects few optional arguments:
nameserversa list of nameservers used to resolve domain-namestimeout(in nanoseconds), passed tocreate
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page