NAME

PowerDNS::API::ACL::CLI - Manage the tokens and grants of PowerDNS::API::ACL

VERSION

version 0.002

SYNOPSIS

pdns-acl [--db FILE] token add LABEL GRANT
pdns-acl [--db FILE] token list
pdns-acl [--db FILE] token remove LABEL

pdns-acl [--db FILE] grant add LABEL GRANT
pdns-acl [--db FILE] grant list LABEL
pdns-acl [--db FILE] grant remove ID

GRANT is: --zone ZONE [--name NAME] [--type TYPE ...] [--write | --manage]

DESCRIPTION

token add makes a token with its first grant, and prints its secret. It is the only time that anything shows the secret, because the database keeps only its digest. A token without a grant could do nothing, so there is no way to make one.

grant add adds a grant to a token.

A grant gives read access to the records of NAME in ZONE, or write access with --write. NAME is one name, or *. and a name for every name below it. Give --type once for each record type, or leave it out for every type. --manage lets the token create and delete ZONE itself, and needs no --name. PowerDNS::API::ACL says what a grant means.

grant list prints each grant with the id that grant remove takes. grant remove refuses to remove the last grant of a token. Remove the token instead.

OPTIONS

--db FILE

The database. The default is $PDNS_ACL_DB, or /var/lib/pdns-acl/acl.db.

SEE ALSO

Please see those modules/websites for more information related to this module.

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/Troglodyne-Internet-Widgets/perl-powerdns-api-acl/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHORS

Current Maintainers:

  • George S. Baugh <george@troglodyne.net>

COPYRIGHT AND LICENSE

Copyright (c) 2026 Troglodyne LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.