package dns-server

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dns-10.2.2.tbz
sha256=5123d7167f5fb3a5ab70cf0b3ccc965089ec440dc07edeabf8c0568ee737a7f0
sha512=4e5945435f280591c158ab03fec19dc0c807fb713d6ee68873939899c49175f39af1fbcd135517514a3ab088993356a4c303f7dce5e18d403d4630a33bad9076

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

Module Dns_server.AuthenticationSource

Authentication, stored in a Dns_trie with privileges to operations embedded in the name.

A key is a pair of a `raw Domain_name.t and a Dnskey.t. In the name, operation privileges and potentially IP addresses are encoded, e.g. foo._transfer.example.com may do AXFR on example.com and any subdomain, e.g. foo.example.com.

Sourcetype operation = [
  1. | `Update
  2. | `Transfer
  3. | `Notify
]

The type of operations, sorted by highest ot lowest privileges, an `Update may as well carry out a `Transfer.

Sourceval operation_to_string : operation -> string

operation_to_string op is the string representation of op.

Sourceval all_ops : operation list

all_ops is a list of all operations.

Sourceval access_granted : required:operation -> operation -> bool

access_granted ~required key_operation is true if key_operation is authorised for required operation.

Sourceval zone_and_operation : 'a Domain_name.t -> ([ `host ] Domain_name.t * operation) option

zone_and_operation key is Some (zone, op), the zone of the key, and its operation op. If the key is not in the expected format, None is returned.

Sourceval access : ?key:'a Domain_name.t -> zone:'b Domain_name.t -> operation -> bool

access op ~key ~zone checks whether key is authorised for op on zone.

Sourcetype t

Opaque type for storing authentication keys.