package dns-server
Install
dune-project
Dependency
Authors
Maintainers
Sources
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.
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.