package dns-server

  1. Overview
  2. Docs
DNS server, primary and secondary

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dns-10.2.5.tbz
sha256=23af091a6e4c13322b7f9094577e6d72dfcd5e23c4ec00fa3520edb4ff9f5fef
sha512=36b2e4eef2fd9f27bdafba10a86b078cb37e4cd461b363a57b71ca9bd7493ec2388cd9e44c374f1c2a65b73e0dd16c959aed7bd0f91151b3027737b44d4c9332

doc/dns-server/Dns_server/Secondary/index.html

Module Dns_server.SecondarySource

Sourcetype s

The state of a secondary DNS server.

Sourceval data : s -> Dns_trie.t

data s is the zone data of s.

Sourceval with_data : s -> Dns_trie.t -> s

with_data s trie is s with its data replaced by trie.

Sourceval create : ?primary:Ipaddr.t -> tsig_verify:Dns.Tsig_op.verify -> tsig_sign:Dns.Tsig_op.sign -> rng:(int -> string) -> ('a Domain_name.t * Dns.Dnskey.t) list -> s

create ~primary ~tsig_verify ~tsig_sign ~rng keys creates a secondary DNS server state.

Sourceval handle_packet : ?packet_callback:packet_callback -> s -> Ptime.t -> int64 -> Ipaddr.t -> Dns.Packet.t -> 'a Domain_name.t option -> s * Dns.Packet.t option * (Ipaddr.t * string) option

handle_packet s now ts ip proto key t handles the incoming packet.

Sourceval handle_buf : ?packet_callback:packet_callback -> s -> Ptime.t -> int64 -> Dns.proto -> Ipaddr.t -> string -> s * string option * (Ipaddr.t * string) option

handle_buf ~packet_callback s now ts proto src buf decodes buf, processes with handle_packet, and encodes the results.

Sourceval timer : s -> Ptime.t -> int64 -> s * (Ipaddr.t * string list) list

timer s now ts may request SOA or retransmit AXFR.

Sourceval closed : s -> Ptime.t -> int64 -> Ipaddr.t -> s * string list

closed s now ts ip marks ip as closed, the returned buffers (SOA requests) should be sent to ip.