Skip to content

pdnsutil: possibly helpful backend-cmd help#17002

Merged
miodvallat merged 1 commit into
PowerDNS:masterfrom
miodvallat:directbackenderror
Apr 15, 2026
Merged

pdnsutil: possibly helpful backend-cmd help#17002
miodvallat merged 1 commit into
PowerDNS:masterfrom
miodvallat:directbackenderror

Conversation

@miodvallat
Copy link
Copy Markdown
Contributor

Short description

At the moment, if one invokes pdnsutil backend-cmd $backendname with no actual commands to perform, you get a syntax error and the synopsis of pdnsutil backend-cmd.

However, the LMDB backend has code to display a short but much more useful help message in this case.

So let pdnsutil pass no commands to the backends, and let the backends handle that - either doing nothing or giving some information.

Checklist

I have:

  • read the CONTRIBUTING.md document
  • read and accepted the Developer Certificate of Origin document, including the AI Policy, and added a "Signed-off-by" to my commits
  • compiled this code
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Copy link
Copy Markdown
Contributor

@pieterlexis pieterlexis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Perhaps the manpage could mention this behaviour?

@miodvallat miodvallat merged commit f216e1f into PowerDNS:master Apr 15, 2026
92 checks passed
@miodvallat miodvallat deleted the directbackenderror branch April 15, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants