package dns-server

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

Install

Dune Dependency

Authors

Maintainers

Sources

dns-9.1.0.tbz
sha256=8f3ec95acf14f574219b5440a689eae1acc2a49cb1d8a066f9b23a7ac68f44f0
sha512=7bf2d099919a410f270d157a04a8d2e1c499269cca868e19a80396cdfc84a9b844c353267cf9183f585bb9b975445b8e2d0a6dd64d85b8de19e7752ec495cbe9

doc/dns-server.zone/Dns_zone/index.html

Module Dns_zoneSource

Sourceval parse : string -> (Dns.Name_rr_map.t, [> `Msg of string ]) result

parse data attempts to parse the data, given in zone file format. It either returns the content as a map, or an error.

Sourceval decode_keys : 'a Domain_name.t -> string -> Dns.Dnskey.t Domain_name.Map.t

decode_keys zone data decodes DNSKEY in data, and ensure that all are within zone. Errors are logged via the logs library.

Sourceval decode_zones : (string * string) list -> Domain_name.Set.t * Dns_trie.t

decode_zones (name, data) parses the zones data with the names name, and constructs a trie that has been checked for consistency. The set of zones are returned, together with the constructed trie. Errors and inconsistencies are logged via the logs library, and the respective zone data is ignored.

Sourceval decode_zones_keys : (string * string) list -> Domain_name.Set.t * Dns_trie.t * ([ `raw ] Domain_name.t * Dns.Dnskey.t) list

decode_zones_keys (name, data) is decode_zones, but also if a name ends with "_keys", the Dnskey records are decoded (using decode_keys and are added to the last part of the return value.

OCaml

Innovation. Community. Security.