Skip to main content
These commands match the Access pages and Settings → API tokens in the dashboard. For how divisions, roles and permissions fit together, see Users, divisions and roles. Divisions and users are named by id, slug or name. Commands that act on a division’s tokens or keys take --division (-d) when you belong to more than one.

Divisions

Members

Users

User accounts are managed by superadmins.
dnz user add and dnz user edit --reset-password ask for the password, or read it from DNZ_NEW_PASSWORD when there is no terminal.

Roles

Built-in roles are Owner, Editor and Viewer. The permissions are zones.read, zones.write, records.write, logs.read, members.manage, integrations.manage, audit.read, tokens.manage and filtering.manage.

API tokens

API tokens let scripts, Terraform, CI and ACME clients use the API without a password. Managing them needs the tokens.manage permission (the Owner role has it).
dnz token create prints the token once, on its own line, so a script can capture it:
A token never has more rights than you. See API tokens for the rules, and Authentication for using one with the CLI.

Update keys

Update keys are TSIG keys for dynamic DNS updates (RFC 2136) from nsupdate, Kea DHCP-DDNS, ExternalDNS and certbot. They live next to API tokens and need the same tokens.manage permission. See Dynamic updates for what a key may do and how to set up each client.
dnz update-key create prints a BIND-style key file on standard output once, ready for nsupdate -k kea.key.

Options of update-key create

Changing a key’s scope

dnz update-key set changes only the options you give. The name and secret stay the same.
If a key’s secret gets lost, revoke the key and create a new one. The secret can’t be shown again.