package dns-server
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=0882061bc5bfa7515ab26c84ca8062323ac5931b3f8ae2952794b0c927d8854e
sha512=1b937aea10a76aebd6b9f44e7142fb0818e17147048fc7ff99ff6f29e5b217eb75e2bc700464089ed453ced2fede4a094828bf278a555736b51fbe285d6271a4
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.
The type of operations, sorted by highest ot lowest privileges, an `Update may as well carry out a `Transfer.
operation_to_string op is the string representation of op.
access_granted ~required key_operation is true if key_operation is authorised for required operation.
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.
access op ~key ~zone checks whether key is authorised for op on zone.
Opaque type for storing authentication keys.